예제 #1
0
 /** 
  * decorate
  * 
  * @access  protected
  * @return  mixed
  * @param   mixed   $value
  */
 function decorate($value)
 {
     if (is_string($value)) {
         return htmlSpecialchars($value, ENT_QUOTES, $this->list->getEncoding());
     } elseif (is_array($value)) {
         return array_map(array(&$this, 'decorate'), $value);
     }
     return $value;
 }
예제 #2
0
/**
* optionSpecialchars - escape a string which is in a <option>string</option>
*
* @param string $string string to escape
* @return string escaped string
*/
function optionSpecialchars($string)
{
    return htmlSpecialchars($string);
}
예제 #3
0
 /**
  * Put the mail information in a view.
  *
  * @param $view
  *
  */
 function putInView($view)
 {
     if ($this->_mailType == Mail::SOME_USER) {
         $view->to = $this->_to;
     } else {
         if ($this->_mailType == Mail::ALL_REVIEWERS) {
             $view->to = $this->_texts->mail->to_all_reviewers;
         } else {
             if ($this->_mailType == Mail::ALL_AUTHORS) {
                 $view->to = $this->_texts->mail->to_all_authors;
             } else {
                 if ($this->_mailType == Mail::ALL_PARTICIPANTS) {
                     $view->to = $this->_texts->mail->to_all_participants;
                 }
             }
         }
     }
     $view->from = $this->_from;
     $view->mailType = $this->_mailType;
     $view->mailFormat = $this->_mailFormat;
     $view->subject = $this->getSubject();
     //   $view->template = htmlEntities($this->getTemplate());
     $view->template = htmlSpecialchars($this->getTemplate());
 }