Swat/SwatUIObject.php
public function addStyleSheet($stylesheet)
    {
        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 SwatStyleSheetHtmlHeadEntry($stylesheet)
        );
    }
public function addStyleSheet($stylesheet)
    {
        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 SwatStyleSheetHtmlHeadEntry($stylesheet)
        );
    }
public function addStyleSheet ( $ stylesheet ) { 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 SwatStyleSheetHtmlHeadEntry ( $ stylesheet ) ) ; }
Adds a stylesheet to the list of stylesheets needed by this
user-iterface element

@param string  $stylesheet the uri of the style sheet.
@param integer $display_order the relative order in which to display
this stylesheet head entry.
Adds a stylesheet to the list of stylesheets needed by this user - iterface element