public function sendNotificationInOne( $subscriber, $contentObject, $commentList = null, $tpl = null )
    {
         if ( is_null( $tpl ) )
         {
             $tpl = eZTemplate::factory();
         }
         $tpl->setVariable( 'subscriber', $subscriber );
         $tpl->setVariable( 'contentobject', $contentObject );
         if ( !is_null( $commentList ) )
         {
            $tpl->setVariable( 'comment_list', $commentList );
         }
         $subject = $tpl->fetch( $this->multiSubjectTemplatePath );
         $body = $tpl->fetch( $this->multiBodyTemplatePath );
         $this->executeSending( $subject, $body, $subscriber );
    }
public function sendNotificationInOne( $subscriber, $contentObject, $commentList = null, $tpl = null )
    {
         if ( is_null( $tpl ) )
         {
             $tpl = eZTemplate::factory();
         }
         $tpl->setVariable( 'subscriber', $subscriber );
         $tpl->setVariable( 'contentobject', $contentObject );
         if ( !is_null( $commentList ) )
         {
            $tpl->setVariable( 'comment_list', $commentList );
         }
         $subject = $tpl->fetch( $this->multiSubjectTemplatePath );
         $body = $tpl->fetch( $this->multiBodyTemplatePath );
         $this->executeSending( $subject, $body, $subscriber );
    }
public function sendNotificationInOne ( $ subscriber , $ contentObject , $ commentList = null , $ tpl = null ) { if ( is_null ( $ tpl ) ) { $ tpl = eZTemplate :: factory ( ) ; } $ tpl -> setVariable ( 'subscriber' , $ subscriber ) ; $ tpl -> setVariable ( 'contentobject' , $ contentObject ) ; if ( ! is_null ( $ commentList ) ) { $ tpl -> setVariable ( 'comment_list' , $ commentList ) ; } $ subject = $ tpl -> fetch ( $ this -> multiSubjectTemplatePath ) ; $ body = $ tpl -> fetch ( $ this -> multiBodyTemplatePath ) ; $ this -> executeSending ( $ subject , $ body , $ subscriber ) ; }
send notification with all comment in one notification
Exception if error happens
@param $subscriber
@param $contentObject
@param $commentList comment list to the subscriber, which can be null.
@param $tpl
@return void
send notification with all comment in one notification Exception if error happens