PHP 클래스 Varien_Autoload

파일 보기 프로젝트 열기: aoepeople/aoe_classpathcache 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$useAPC

보호된 프로퍼티들

프로퍼티 타입 설명
$_BP * Base Path
$_cache
$_instance
$_numberOfFilesAddedToCache
$_scope
$cacheKey

공개 메소드들

메소드 설명
__construct ( ) Class constructor
__destruct ( ) Class destructor
autoload ( string $class ) : boolean Load class source code
getCache ( ) : array Get cache
getCacheFilePath ( ) : string Get cache file path
getCacheKey ( ) : string Get cache key (for apc)
getFileFromClassName ( string $className ) : string Get file name from class name
getFullPath ( $className ) : mixed Get full path
getRevalidateFlagPath ( ) : string Get revalidate flag file path
getScope ( ) : string Get current autoload scope
instance ( ) : Varien_Autoload Singleton pattern implementation
isApcUsed ( ) : boolean Check if apc is used
loadCacheContent ( ) : array Load cache content from file
register ( ) Register SPL autoload function
registerScope ( string $code ) Register autoload scope This process allow include scope file which can contain classes definition which are used for this scope
searchFullPath ( $filename ) : boolean | string Checks if a file exists in the include path and returns the full path if the file exists
setCache ( array $cache ) Setting cache content

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( )

__destruct() 공개 메소드

Class destructor
public __destruct ( )

autoload() 공개 메소드

Load class source code
public autoload ( string $class ) : boolean
$class string
리턴 boolean

getCache() 공개 정적인 메소드

Get cache
public static getCache ( ) : array
리턴 array

getCacheFilePath() 공개 정적인 메소드

Get cache file path
public static getCacheFilePath ( ) : string
리턴 string

getCacheKey() 공개 정적인 메소드

Get cache key (for apc)
public static getCacheKey ( ) : string
리턴 string

getFileFromClassName() 공개 정적인 메소드

Get file name from class name
public static getFileFromClassName ( string $className ) : string
$className string
리턴 string

getFullPath() 공개 정적인 메소드

Get full path
public static getFullPath ( $className ) : mixed
$className
리턴 mixed

getRevalidateFlagPath() 공개 정적인 메소드

Get revalidate flag file path
public static getRevalidateFlagPath ( ) : string
리턴 string

getScope() 공개 정적인 메소드

Get current autoload scope
public static getScope ( ) : string
리턴 string

instance() 공개 정적인 메소드

Singleton pattern implementation
public static instance ( ) : Varien_Autoload
리턴 Varien_Autoload

isApcUsed() 공개 정적인 메소드

Check if apc is used
public static isApcUsed ( ) : boolean
리턴 boolean

loadCacheContent() 공개 정적인 메소드

Load cache content from file
public static loadCacheContent ( ) : array
리턴 array

register() 공개 정적인 메소드

Register SPL autoload function
public static register ( )

registerScope() 공개 정적인 메소드

Register autoload scope This process allow include scope file which can contain classes definition which are used for this scope
public static registerScope ( string $code )
$code string scope code

searchFullPath() 공개 정적인 메소드

Checks if a file exists in the include path and returns the full path if the file exists
public static searchFullPath ( $filename ) : boolean | string
$filename
리턴 boolean | string

setCache() 공개 정적인 메소드

Setting cache content
public static setCache ( array $cache )
$cache array

프로퍼티 상세

$_BP 보호되어 있는 정적으로 프로퍼티

* Base Path
protected static $_BP

$_cache 보호되어 있는 정적으로 프로퍼티

protected static $_cache

$_instance 보호되어 있는 정적으로 프로퍼티

protected static $_instance

$_numberOfFilesAddedToCache 보호되어 있는 정적으로 프로퍼티

protected static $_numberOfFilesAddedToCache

$_scope 보호되어 있는 정적으로 프로퍼티

protected static $_scope

$cacheKey 보호되어 있는 정적으로 프로퍼티

protected static $cacheKey

$useAPC 공개적으로 정적으로 프로퍼티

public static $useAPC