PHP Class Phalcon\Mvc\Model\MetaData\Base

Author: Nikita Vershinin ([email protected])
Author: Ilya Gusev ([email protected])
Inheritance: extends Phalcon\Mvc\Model\MetaData, implements Phalcon\Mvc\Model\MetaDataInterface
Mostrar archivo Open project: phalcon/incubator Class Usage Examples

Protected Properties

Property Type Description
$defaults array Default options for cache backend.
$options array Backend's options.

Public Methods

Method Description
__construct ( null | array $options = null ) Class constructor.
read ( string $key ) : array
write ( string $key, array $data )

Protected Methods

Method Description
getCacheBackend ( ) : Phalcon\Cache\BackendInterface Returns cache backend instance.
prepareKey ( string $key ) : string Returns the key with a prefix or other changes

Method Details

__construct() public method

Class constructor.
public __construct ( null | array $options = null )
$options null | array

getCacheBackend() abstract protected method

Returns cache backend instance.
abstract protected getCacheBackend ( ) : Phalcon\Cache\BackendInterface
return Phalcon\Cache\BackendInterface

prepareKey() protected method

Returns the key with a prefix or other changes
protected prepareKey ( string $key ) : string
$key string
return string

read() public method

public read ( string $key ) : array
$key string
return array

write() public method

public write ( string $key, array $data )
$key string
$data array

Property Details

$defaults protected_oe static_oe property

Default options for cache backend.
protected static array $defaults
return array

$options protected_oe property

Backend's options.
protected array $options
return array