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

Public Member Functions

 init ()
 getUserCollectionId ()
 sign ($string)

Static Public Member Functions

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

Public Attributes

 $signSalt = 'sign-salt'
 $shareByMailEmail = 'remember@example.com'
 $shareByMailSubject = 'Remember subject'
 $shareByMailEnabled = false
 $facebookApplicationId
 $allowedURL = ""
 $pdfname = ""
 $tmpFolder

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.

RememberModule This module allows user to remember pages he was visited and then share them using Facebook, mail or printing

Interaction with module performs with two widgets and one link creation function Widgets:

RememberModule::createLink() function creates special link for page. When user clicks on it then page with parametrs remembered in database.

Definition at line 22 of file RememberModule.php.

Member Function Documentation

RememberModule::getUserCollectionId ( )

Get current user collection id

Returns
string

Definition at line 94 of file RememberModule.php.

{
return Yii::app()->user->isGuest ? Yii::app()->session->getSessionId() : Yii::app()->user->id;
}
RememberModule::sign (   $string)

Make digital signature for string using md5

Returns
string

Definition at line 118 of file RememberModule.php.

{
return md5($string . $this->signSalt);
}
static RememberModule::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 108 of file RememberModule.php.

Referenced by SavePageLink\run().

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

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