PHP 클래스 PathFinder_Location, atk4

상속: extends AbstractModel
파일 보기 프로젝트 열기: atk4/atk4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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