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

Public Member Functions

 getLoginUrl ()
 init ()
 getAssetsUrl ()

Static Public Member Functions

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

Public Attributes

 $defaultController = 'like'
 $likeAction
 $contentId
 $lastLikesQty = 10
 $topLikesQty = 3
 $cacheTime = 60

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.

Like module class file.

Definition at line 12 of file LikeModule.php.

Member Function Documentation

LikeModule::getAssetsUrl ( )

Returns path to assets for current module

Returns
string

Definition at line 95 of file LikeModule.php.

{
if (!$this->_assetsUrl) {
$this->_assetsUrl = Yii::app()->assetManager->publish(Yii::getPathOfAlias('like.views.asset'), true);
}
return $this->_assetsUrl;
}
LikeModule::getLoginUrl ( )

page contained UserLoginWidget

Returns
mixed

Definition at line 55 of file LikeModule.php.

{
return is_array(Yii::app()->getModule('user')->loginUrl) ? Yii::app()->getModule('user')->loginUrl[0] : Yii::app()->getModule('user')->loginUrl;
}
LikeModule::init ( )

Initialize widget. Import like models.

Returns
void

Definition at line 65 of file LikeModule.php.

{
// import the module-level models and components
$this->setImport(
array(
'like.models.*',
)
);
}
static LikeModule::t (   $str = '',
  $params = array(),
  $dic = 'like' 
)
static

Translates a message to the specified language.

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

Definition at line 84 of file LikeModule.php.

Referenced by LikeController\actionIndex().

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

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