Public Member Functions | |
getPath () | |
getFile () | |
setAttributes ($attributes) | |
getAttributes () | |
getPersonalisationAttributes () | |
__construct (ContentSource $source, $path, $attributes=null) | |
hasAccess ($user) |
Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales @gen tics. comhttp://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.
This class represents content taken from Gentics Content Connector. The main purpose is to store content attributes in cache and in case cache expired or crashed reload this attributes.
Definition at line 14 of file Content.php.
Content::__construct | ( | ContentSource | $source, |
$path, | |||
$attributes = null |
|||
) |
Constructor
ContentSource | $source | content source. Used for getting current personalisation configuration |
string | $path | content active path |
array | $attributes | content attributes |
Definition at line 114 of file Content.php.
References setAttributes().
Content::getAttributes | ( | ) |
Get content attributes from cache if $this->_source->usePersonalization== true If cache is empty but personalisation enabled, request api for content attributes
Exception |
Definition at line 68 of file Content.php.
References setAttributes().
Referenced by getPersonalisationAttributes().
Content::getFile | ( | ) |
Content file location
Definition at line 41 of file Content.php.
References getPath().
Content::getPath | ( | ) |
Content active path
Definition at line 31 of file Content.php.
Referenced by getFile().
Content::getPersonalisationAttributes | ( | ) |
Get content personalisation attributes
Definition at line 90 of file Content.php.
References getAttributes().
Referenced by hasAccess().
Content::hasAccess | ( | $user | ) |
Check if user has access to this content
object | $user | user |
Definition at line 130 of file Content.php.
References getPersonalisationAttributes().
Content::setAttributes | ( | $attributes | ) |
Save content attributes to cache
array | $attributes | content attributes |
Definition at line 53 of file Content.php.
Referenced by __construct(), and getAttributes().