Cheetah
Public Member Functions | Public Attributes | List of all members
ChWsbEmailTemplates Class Reference

Public Member Functions

 __construct ()
 
 setTemplate ( $sTemplateName, $sTemplateSubj, $sTemplateBody, $iLangID)
 
 getTemplate ($sTemplateName, $iMemberId=0)
 
 parseTemplate ($sTemplateName, $aTemplateKeys, $iMemberId=0)
 
 parseContent ($sContent, $aKeys, $iMemberId=0)
 
 getDefaultKeys ()
 

Public Attributes

 $iDefaultLangId
 

Detailed Description

Definition at line 10 of file ChWsbEmailTemplates.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbEmailTemplates::__construct ( )

Class constructor.

Definition at line 17 of file ChWsbEmailTemplates.php.

Member Function Documentation

◆ getDefaultKeys()

ChWsbEmailTemplates::getDefaultKeys ( )

Definition at line 126 of file ChWsbEmailTemplates.php.

◆ getTemplate()

ChWsbEmailTemplates::getTemplate (   $sTemplateName,
  $iMemberId = 0 
)

Function will return array of needed template ;

Parameters
string$sTemplateName- name of necessary template.
integer$iMemberId- ID of registered member.
Returns
array with template subject and its body.

Definition at line 81 of file ChWsbEmailTemplates.php.

◆ parseContent()

ChWsbEmailTemplates::parseContent (   $sContent,
  $aKeys,
  $iMemberId = 0 
)

Definition at line 103 of file ChWsbEmailTemplates.php.

◆ parseTemplate()

ChWsbEmailTemplates::parseTemplate (   $sTemplateName,
  $aTemplateKeys,
  $iMemberId = 0 
)

Definition at line 94 of file ChWsbEmailTemplates.php.

◆ setTemplate()

ChWsbEmailTemplates::setTemplate (   $sTemplateName,
  $sTemplateSubj,
  $sTemplateBody,
  $iLangID 
)

Update existing or create new template ;

Parameters
$sTemplateName(string) - name of template ;
$sTemplateSubj(string) - subject of template ;
$sTemplateBody(string) - text of template ;
$iLangID(integer) - needed language's ID;
Returns
HTML presentation data ;

Definition at line 35 of file ChWsbEmailTemplates.php.

Member Data Documentation

◆ $iDefaultLangId

ChWsbEmailTemplates::$iDefaultLangId

Definition at line 12 of file ChWsbEmailTemplates.php.


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