Swat/SwatUIObject.php
public function addComment($comment)
    {
        if ($this->html_head_entry_set === null) {
            throw new SwatException(
                sprintf(
                    "Child class '%s' did not " .
                        'instantiate a HTML head entry set. This should be done in  ' .
                        'the constructor either by calling parent::__construct() or ' .
                        'by creating a new HTML head entry set.',
                    get_class($this)
                )
            );
        }

        $this->html_head_entry_set->addEntry(
            new SwatCommentHtmlHeadEntry($comment)
        );
    }
public function addComment($comment)
    {
        if ($this->html_head_entry_set === null) {
            throw new SwatException(
                sprintf(
                    "Child class '%s' did not " .
                        'instantiate a HTML head entry set. This should be done in  ' .
                        'the constructor either by calling parent::__construct() or ' .
                        'by creating a new HTML head entry set.',
                    get_class($this)
                )
            );
        }

        $this->html_head_entry_set->addEntry(
            new SwatCommentHtmlHeadEntry($comment)
        );
    }
public function addComment ( $ comment ) { if ( $ this -> html_head_entry_set === null ) { throw new SwatException ( sprintf ( "Child class '%s' did not " . 'instantiate a HTML head entry set. This should be done in  ' . 'the constructor either by calling parent::__construct() or ' . 'by creating a new HTML head entry set.' , get_class ( $ this ) ) ) ; } $ this -> html_head_entry_set -> addEntry ( new SwatCommentHtmlHeadEntry ( $ comment ) ) ; }
Adds a comment to the list of HTML head entries needed by this user-
interface element

@param string  $comment the contents of the comment to include.
Adds a comment to the list of HTML head entries needed by this user - interface element