Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PersonalisationModule Class Reference

Public Member Functions

 setRule ($config)
 getRule ()
 init ()
 getAssetsUrl ()

Static Public Member Functions

static t ($str= '', $params=array(), $dic= 'core')

Public Attributes

 $cacheTime = 0

Detailed Description

Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales.nosp@m.@gen.nosp@m.tics..nosp@m.com http://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.

Definition at line 12 of file PersonalisationModule.php.

Member Function Documentation

PersonalisationModule::getAssetsUrl ( )

Publish module assets and return url

Returns
string

Definition at line 69 of file PersonalisationModule.php.

{
if (!$this->_assetsUrl) {
$this->_assetsUrl = Yii::app()->assetManager->publish(Yii::getPathOfAlias('personalisation.assets'), true);
}
return $this->_assetsUrl;
}
PersonalisationModule::getRule ( )

Personalisation rule getter

Returns
BasicPersonalisationRule

Definition at line 41 of file PersonalisationModule.php.

{
return $this->_rule;
}
PersonalisationModule::init ( )

Initializes the module.

Returns
void

Definition at line 52 of file PersonalisationModule.php.

{
$this->setImport(
array(
'personalisation.components.*',
'personalisation.helpers.*',
'personalisation.models.*',
'personalisation.widgets.*',
)
);
}
PersonalisationModule::setRule (   $config)

Personalisation rule setter

Parameters
array$configconfiguration
Returns
void

Definition at line 27 of file PersonalisationModule.php.

{
if (is_string($config)) {
$config = array('class'=>$config);
}
$this->_rule = Yii::createComponent($config);
}
static PersonalisationModule::t (   $str = '',
  $params = array(),
  $dic = 'core' 
)
static

Translates a message to the specified language.

Parameters
string$strmessage
array$paramsparams
string$dicdictionary
Returns
string

Definition at line 86 of file PersonalisationModule.php.

Referenced by ManageController\actionDeleteAttribute().

{
return Yii::t("PersonalisationModule." . $dic, $str, $params);
}

The documentation for this class was generated from the following file: