PHP Class Newscoop\Entity\Template

Datei anzeigen Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$cache_lifetime integer
$id integer
$key string

Public Methods

Method Description
__construct ( string $key )
exists ( ) : boolean Check if the template exists
getCacheLifetime ( ) : integer Get cache lifetime
getId ( ) : integer Get id
getKey ( ) : string Get key
setCacheLifetime ( integer $lifetime ) : Newscoop\Entity\Template Set cache lifetime
setKey ( string $key ) : Newscoop\Entity\Template Set key

Method Details

__construct() public method

public __construct ( string $key )
$key string

exists() public method

Check if the template exists
public exists ( ) : boolean
return boolean True always for now

getCacheLifetime() public method

Get cache lifetime
public getCacheLifetime ( ) : integer
return integer

getId() public method

Get id
public getId ( ) : integer
return integer

getKey() public method

Get key
public getKey ( ) : string
return string

setCacheLifetime() public method

Set cache lifetime
public setCacheLifetime ( integer $lifetime ) : Newscoop\Entity\Template
$lifetime integer
return Newscoop\Entity\Template

setKey() public method

Set key
public setKey ( string $key ) : Newscoop\Entity\Template
$key string
return Newscoop\Entity\Template

Property Details

$cache_lifetime protected_oe property

protected int $cache_lifetime
return integer

$id protected_oe property

protected int $id
return integer

$key protected_oe property

protected string $key
return string