Property | Type | Description | |
---|---|---|---|
$atk_location | Agile Toolkit comes with some assets: lib, template. This location describes those resources. It's not publicly available. | ||
$atk_public | public/atk4 -> /vendor/atk4/atk4/public/atk4 If that folder is not there, PathFinder will point directly to vendor folder (such as if on development environment), if that is also unavailable, this can fall back to Agile Toolkit CDN. | ||
$base_location | Base location is where your interface files are located. Normally this location is added first and all the requests are checked here before elsewhere. Example: /my/path/agiletoolkit/admin/. | ||
$default_exception | |||
$public_location | This is location where images, javascript files and some other public resources are located. Ex: /my/path/agiletoolkit/public. |
Property | Type | Description | |
---|---|---|---|
$report_autoload_errors | boolean | By default Agile Toolkit will report autoloading errors if the file couldn't be found by any of the autoloaders. To prevent this, you should pass ['report_autoload_errors'=>false] as second argument to initialization of this class. |
Method | Description | |
---|---|---|
_searchDirFiles ( $dir, &$files, $prefix = '' ) | ||
addDefaultLocations ( ) | Agile Toolkit-based application comes with a predefined resource structure. For new users it's easier if they use a consistest structure, for example having all the PHP classes inside "lib" folder. | |
addLocation ( array $contents = [], mixed $old_contents = null ) : PathFinder_Location | Cretes new PathFinder_Location object and specifies it's contents. | |
addSandbox ( ) | ||
init ( ) | ||
loadClass ( $className ) : string | Provided with a class name, this will attempt to find and load it. | |
locate ( string $type, string $filename = '', string $return = 'relative', $throws_exception = true ) : string | object | array | Search for a $filename inside multiple locations, associated with resource $type. By default will return relative path, but 3rd argument can change that. | |
search ( string $type, string $filename = '', string $return = 'relative' ) : string | object | Search is similar to locate, but will return array of all matching files. | |
searchDir ( $type, $directory = '' ) | Specify type and directory and it will return array of all files of a matching type inside that directory. This will work even if specified directory exists inside multiple locations. |
public addDefaultLocations ( ) |
public addLocation ( array $contents = [], mixed $old_contents = null ) : PathFinder_Location | ||
$contents | array | |
$old_contents | mixed | |
return | PathFinder_Location |
public locate ( string $type, string $filename = '', string $return = 'relative', $throws_exception = true ) : string | object | array | ||
$type | string | Type of resource to search surch as "php" |
$filename | string | Name of the file to search for |
$return | string | 'relative','url','path' or 'location' |
return | string | object | array |
public search ( string $type, string $filename = '', string $return = 'relative' ) : string | object | ||
$type | string | Type of resource to search surch as "php" |
$filename | string | Name of the file to search for |
$return | string | 'relative','url','path' or 'location' |
return | string | object | as specified by $return |
public searchDir ( $type, $directory = '' ) |
public $atk_location |
public $atk_public |
public $base_location |
public $public_location |
protected bool $report_autoload_errors | ||
return | boolean |