Property | Type | Description | |
---|---|---|---|
$auto_track_element | |||
$base_path | All location would have a base_path defined. | ||
$base_url | Locations could have a URL defined, if location is exposed on-line. | ||
$contents | contains list of 'type'=>'subdir' which lists all the resources which can be found in this directory. | ||
$is_cdn |
Method | Description | |
---|---|---|
addRelativeLocation ( string $relative_path, array $contents = [] ) | Adds a new location object which is relative to $this location. | |
defineContents ( array $contents ) | ||
getPath ( $file_path = null ) | Returns how this location or file can be accessed through filesystem. | |
getURL ( $file_path = null ) | Returns how this location or file can be accessed through web base url + relative path + file_path. | |
locate ( $type, $filename, $return = 'relative' ) | ||
setBasePath ( $path ) | Set a new BasePath. | |
setBaseURL ( $url ) | Set a new BaseURL. | |
setCDN ( $url ) | ||
setParent ( Pathfinder_Location $parent ) | OBSOLETE - Compatiblity |
public addRelativeLocation ( string $relative_path, array $contents = [] ) | ||
$relative_path | string | |
$contents | array |
public getPath ( $file_path = null ) |
public getURL ( $file_path = null ) |
public setParent ( Pathfinder_Location $parent ) | ||
$parent | Pathfinder_Location |
public $base_url |
public $contents |