PHP Class Phosphorum\Models\CacheableModel

Inheritance: extends Phalcon\Mvc\Model
Datei anzeigen Open project: phalcon/forum

Public Methods

Method Description
findFirst ( mixed $parameters = null ) Caches models data in memory
getFirst ( ) Allows to use the model as a resultset's row
setIsFresh ( mixed $value ) Allows to use the model as a resultset's row

Protected Methods

Method Description
createKey ( mixed $parameters ) : null | string Returns a string key based on the query parameters

Method Details

createKey() protected static method

Returns a string key based on the query parameters
protected static createKey ( mixed $parameters ) : null | string
$parameters mixed
return null | string

findFirst() public static method

Caches models data in memory
public static findFirst ( mixed $parameters = null )
$parameters mixed

getFirst() public method

Allows to use the model as a resultset's row
public getFirst ( )

setIsFresh() public method

Allows to use the model as a resultset's row
public setIsFresh ( mixed $value )
$value mixed