PHP Class Varien_Autoload

Afficher le fichier Open project: aoepeople/aoe_classpathcache Class Usage Examples

Méthodes publiques

Свойство Type Description
$useAPC

Protected Properties

Свойство Type Description
$_BP * Base Path
$_cache
$_instance
$_numberOfFilesAddedToCache
$_scope
$cacheKey

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Class constructor
public __construct ( )

__destruct() public méthode

Class destructor
public __destruct ( )

autoload() public méthode

Load class source code
public autoload ( string $class ) : boolean
$class string
Résultat boolean

getCache() public static méthode

Get cache
public static getCache ( ) : array
Résultat array

getCacheFilePath() public static méthode

Get cache file path
public static getCacheFilePath ( ) : string
Résultat string

getCacheKey() public static méthode

Get cache key (for apc)
public static getCacheKey ( ) : string
Résultat string

getFileFromClassName() public static méthode

Get file name from class name
public static getFileFromClassName ( string $className ) : string
$className string
Résultat string

getFullPath() public static méthode

Get full path
public static getFullPath ( $className ) : mixed
$className
Résultat mixed

getRevalidateFlagPath() public static méthode

Get revalidate flag file path
public static getRevalidateFlagPath ( ) : string
Résultat string

getScope() public static méthode

Get current autoload scope
public static getScope ( ) : string
Résultat string

instance() public static méthode

Singleton pattern implementation
public static instance ( ) : Varien_Autoload
Résultat Varien_Autoload

isApcUsed() public static méthode

Check if apc is used
public static isApcUsed ( ) : boolean
Résultat boolean

loadCacheContent() public static méthode

Load cache content from file
public static loadCacheContent ( ) : array
Résultat array

register() public static méthode

Register SPL autoload function
public static register ( )

registerScope() public static méthode

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() public static méthode

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
Résultat boolean | string

setCache() public static méthode

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

Property Details

$_BP protected_oe static_oe property

* Base Path
protected static $_BP

$_cache protected_oe static_oe property

protected static $_cache

$_instance protected_oe static_oe property

protected static $_instance

$_numberOfFilesAddedToCache protected_oe static_oe property

protected static $_numberOfFilesAddedToCache

$_scope protected_oe static_oe property

protected static $_scope

$cacheKey protected_oe static_oe property

protected static $cacheKey

$useAPC public_oe static_oe property

public static $useAPC