PHP Класс PathFinder_Location, atk4

Наследование: extends AbstractModel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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

Описание методов

addRelativeLocation() публичный Метод

Adds a new location object which is relative to $this location.
public addRelativeLocation ( string $relative_path, array $contents = [] )
$relative_path string
$contents array

defineContents() публичный Метод

public defineContents ( array $contents )
$contents array

getPath() публичный Метод

Returns how this location or file can be accessed through filesystem.
public getPath ( $file_path = null )

getURL() публичный Метод

Returns how this location or file can be accessed through web base url + relative path + file_path.
public getURL ( $file_path = null )

locate() публичный Метод

public locate ( $type, $filename, $return = 'relative' )

setBasePath() публичный Метод

something like /home/web/public_html
public setBasePath ( $path )

setBaseURL() публичный Метод

something like /my/app
public setBaseURL ( $url )

setCDN() публичный Метод

public setCDN ( $url )

setParent() публичный Метод

OBSOLETE - Compatiblity
public setParent ( Pathfinder_Location $parent )
$parent Pathfinder_Location

Описание свойств

$auto_track_element публичное свойство

public $auto_track_element

$base_path публичное свойство

All location would have a base_path defined.
public $base_path

$base_url публичное свойство

Locations could have a URL defined, if location is exposed on-line.
public $base_url

$contents публичное свойство

contains list of 'type'=>'subdir' which lists all the resources which can be found in this directory.
public $contents

$is_cdn публичное свойство

public $is_cdn