__toString() public méthode

Output status block HTML.
public __toString ( ) : string
Résultat string The formatted status message HTML.
Exemple #1
0
 /**
  * Output status block HTML.
  *
  * @return string  The formatted status message HTML.
  */
 public function __toString()
 {
     global $registry;
     $out = '';
     switch ($registry->getView()) {
         case $registry::VIEW_SMARTMOBILE:
             break;
         default:
             $unique_id = strval(new Horde_Support_Randomid());
             $this->addMimeAction('showRenderIssues', _("Click to show message part display errors."), array('domid' => $unique_id));
             $this->icon('info_icon.png', _("Info"));
             $out = parent::__toString();
             $out .= '<div id="' . $unique_id . '" style="display:none">';
             foreach ($this->_issues as $val) {
                 $out .= strval($val);
             }
             $out .= '</div>';
     }
     return $out;
 }