PHP Class CacheTool\Proxy\PhpProxy

Inheritance: implements CacheTool\Proxy\ProxyInterface
Datei anzeigen Open project: gordalina/cachetool

Protected Properties

Property Type Description
$adapter CacheTool\Adapter\AbstractAdapter

Public Methods

Method Description
_eval ( string $expression ) : mixed Evaluate a string as PHP code
extension_loaded ( string $name ) : boolean Find out whether an extension is loaded
getFunctions ( )
ini_get ( string $varname ) : string Gets the value of a configuration option
ini_set ( string $varname, string $newvalue ) : string Gets the value of a configuration option
phpversion ( string $extension = null ) : string Returns a string containing the version of the currently running PHP parser or extension.
setAdapter ( AbstractAdapter $adapter )
stat_cache_clear ( ) : void Resets the contents of the file status cache, including the realpath cache
stat_realpath_get ( ) : array Get contents of the realpath cache
stat_realpath_size ( ) : integer Returns how much memory realpath cache is using.

Method Details

_eval() public method

Evaluate a string as PHP code
public _eval ( string $expression ) : mixed
$expression string Evaluates the given code as PHP
return mixed

extension_loaded() public method

Find out whether an extension is loaded
public extension_loaded ( string $name ) : boolean
$name string The extension name. This parameter is case-insensitive
return boolean Returns TRUE if the extension identified by name is loaded, FALSE otherwise

getFunctions() public method

public getFunctions ( )

ini_get() public method

Gets the value of a configuration option
public ini_get ( string $varname ) : string
$varname string The configuration option name
return string Returns the value of the configuration option as a string on success, or an empty string for null values. Returns FALSE if the configuration option doesn't exist.

ini_set() public method

Gets the value of a configuration option
public ini_set ( string $varname, string $newvalue ) : string
$varname string Not all the available options can be changed using ini_set(). There is a list of all available options in the appendix.
$newvalue string The new value for the option
return string Returns the old value on success, FALSE on failure

phpversion() public method

Returns a string containing the version of the currently running PHP parser or extension.
public phpversion ( string $extension = null ) : string
$extension string An optional extension name
return string

setAdapter() public method

public setAdapter ( AbstractAdapter $adapter )
$adapter CacheTool\Adapter\AbstractAdapter

stat_cache_clear() public method

Resets the contents of the file status cache, including the realpath cache
public stat_cache_clear ( ) : void
return void

stat_realpath_get() public method

Get contents of the realpath cache
Since: 5.3.2
public stat_realpath_get ( ) : array
return array Returns an array of realpath cache entries. The keys are original path entries, and the values are arrays of data items, containing the resolved path, expiration date, and other options kept in the cache.

stat_realpath_size() public method

Returns how much memory realpath cache is using.
Since: 5.3.2
public stat_realpath_size ( ) : integer
return integer Memory usage in bytes

Property Details

$adapter protected_oe property

protected AbstractAdapter,CacheTool\Adapter $adapter
return CacheTool\Adapter\AbstractAdapter