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

Public Member Functions

 init ()
 getAssetsUrl ()

Static Public Member Functions

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

Public Attributes

 $hashSalt = '012rj'
 $notificationsEmail

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.

This module manage by friends functionality.

Definition at line 12 of file FriendsModule.php.

Member Function Documentation

static FriendsModule::encrypting (   $string = "")
static

Encrypt string

Parameters
string$stringstring
Returns
string

Definition at line 64 of file FriendsModule.php.

Referenced by FriendsController\actionAdd(), FriendsController\actionApprove(), and FriendsController\actionCancel().

{
return md5($string . Yii::app()->getModule('friends')->hashSalt);
}
FriendsModule::getAssetsUrl ( )

Publish module assets and return url

Returns
string

Definition at line 35 of file FriendsModule.php.

{
if (!$this->_assetsUrl) {
$this->_assetsUrl = Yii::app()->assetManager->publish(Yii::getPathOfAlias('friends.assets'), true);
}
return $this->_assetsUrl;
}
static FriendsModule::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 52 of file FriendsModule.php.

Referenced by FriendsController\actionAdd(), FriendsController\actionApprove(), and FriendsController\actionCancel().

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

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