private function _isClassInList($class, $classes)
    {
        $items = explode(" ", trim($classes));
        if (count($items) > 0) {
            foreach ($items as $item) {
                if (strcasecmp($class, trim($item)) == 0) {
                    return true;
                }
            }
        }
        return false;
    }
private function _isClassInList($class, $classes)
    {
        $items = explode(" ", trim($classes));
        if (count($items) > 0) {
            foreach ($items as $item) {
                if (strcasecmp($class, trim($item)) == 0) {
                    return true;
                }
            }
        }
        return false;
    }
private function _isClassInList ( $ class , $ classes ) { $ items = explode ( " " , trim ( $ classes ) ) ; if ( count ( $ items ) > 0 ) { foreach ( $ items as $ item ) { if ( strcasecmp ( $ class , trim ( $ item ) ) == 0 ) { return true ; } } } return false ; }
Is a class name in a given list?

@param string $class   Class name
@param string $classes List of classes

@return boolean
Is a class name in a given list?