BearFramework\App\Context\Assets

Provides utility functions for assets in the current context.
BearFramework\App\Context\Assets {

    
/* Methods */
    
public __construct BearFramework\App $app string $dir )
    public 
self addDir string $pathname )
    public 
string|null getContent string $filename [, array $options = [] ] )
    public array 
getDetails string $filename , array $list )
    public 
string getURL string $filename [, array $options = [] ] )

}
Methods
public __construct ( BearFramework\App $app , string $dir )
public self addDir ( string $pathname )
Registers a directory that will be publicly accessible relative to the current addon or application location.
public string|null getContent ( string $filename [, array $options = [] ] )
Returns the content of the file specified in the current context.
public array getDetails ( string $filename , array $list )
Returns a list of details for the filename specifie in the current context.
public string getURL ( string $filename [, array $options = [] ] )
Returns a public URL for the specified filename in the current context.
Details
Location: ~/src/App/Context/Assets.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.