Swat/SwatHtmlHeadEntrySet.php
public function getByType($type)
    {
        $class = __CLASS__;
        $set = new $class();
        foreach ($this->entries as $entry) {
            if ($entry->getType() === $type) {
                $set->addEntry($entry);
            }
        }
        return $set;
    }
public function getByType($type)
    {
        $class = __CLASS__;
        $set = new $class();
        foreach ($this->entries as $entry) {
            if ($entry->getType() === $type) {
                $set->addEntry($entry);
            }
        }
        return $set;
    }
public function getByType ( $ type ) { $ class = __CLASS__ ; $ set = new $ class ( ) ; foreach ( $ this -> entries as $ entry ) { if ( $ entry -> getType ( ) === $ type ) { $ set -> addEntry ( $ entry ) ; } } return $ set ; }
Gets a subset of this set by the entry type

@param string $type the type of HTML head entry to get. For example,
'SwatJavaScriptHtmlHeadEntry'.

@return SwatHtmlHeadEntrySet a subset of this set containing only
entries of the specified type. If no such
entries exist, an empty set is returned.
Gets a subset of this set by the entry type