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
Afficher le fichier Open project: phalcon/incubator Class Usage Examples

Protected Properties

Свойство Type Description
$defaults array Default options for cache backend.
$options array Backend's options.

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

getCacheBackend() abstract protected méthode

Returns cache backend instance.
abstract protected getCacheBackend ( ) : Phalcon\Cache\BackendInterface
Résultat Phalcon\Cache\BackendInterface

prepareKey() protected méthode

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

read() public méthode

public read ( string $key ) : array
$key string
Résultat array

write() public méthode

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
Résultat array

$options protected_oe property

Backend's options.
protected array $options
Résultat array