Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/logs/email_logs/email_log_tp.php
Show All 19 Lines | |||||
* Prints other e-mail recipients | * Prints other e-mail recipients | ||||
* | * | ||||
* @param Array $params | * @param Array $params | ||||
* @return string | * @return string | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function PrintOtherRecipients($params) | protected function PrintOtherRecipients($params) | ||||
{ | { | ||||
/** @var kDBItem $object */ | |||||
$object = $this->getObject($params); | $object = $this->getObject($params); | ||||
/* @var $object kDBItem */ | |||||
$other_recipients = $object->GetDBField('OtherRecipients'); | $other_recipients = $object->GetDBField('OtherRecipients'); | ||||
$other_recipients = $other_recipients ? unserialize($other_recipients) : Array (); | $other_recipients = $other_recipients ? unserialize($other_recipients) : Array (); | ||||
$ret = ''; | $ret = ''; | ||||
$block_params = $this->prepareTagParams($params); | $block_params = $this->prepareTagParams($params); | ||||
$block_params['name'] = $params['render_as']; | $block_params['name'] = $params['render_as']; | ||||
Show All 37 Lines | |||||
* Prints recipients | * Prints recipients | ||||
* | * | ||||
* @param Array $params | * @param Array $params | ||||
* @return string | * @return string | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function RecipientsByType($params) | protected function RecipientsByType($params) | ||||
{ | { | ||||
/** @var Array $recipients */ | |||||
$recipients = $this->Application->Parser->GetParam('recipients'); | $recipients = $this->Application->Parser->GetParam('recipients'); | ||||
/* @var $recipients Array */ | |||||
$ret = ''; | $ret = ''; | ||||
$block_params = $this->prepareTagParams($params); | $block_params = $this->prepareTagParams($params); | ||||
$block_params['name'] = $params['render_as']; | $block_params['name'] = $params['render_as']; | ||||
$recipient_count = count($recipients); | $recipient_count = count($recipients); | ||||
foreach ($recipients as $index => $recipient) { | foreach ($recipients as $index => $recipient) { | ||||
Show All 31 Lines | |||||
if ( $this->Application->ConfigValue('UseModRewrite') ) { | if ( $this->Application->ConfigValue('UseModRewrite') ) { | ||||
$params['__MOD_REWRITE__'] = 1; | $params['__MOD_REWRITE__'] = 1; | ||||
} | } | ||||
} | } | ||||
return $this->Application->ProcessParsedTag('m', 't', $params); | return $this->Application->ProcessParsedTag('m', 't', $params); | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |