public function glob($pattern)
    {
        // $pattern = 'Media'.DIRECTORY_SEPARATOR.'*'
        $wrappers = $this->getStreamWrapperClassname('BackBee\ClassContent', 'bb.class');
        if (0 == count($wrappers)) {
            return false;
        }

        $classnames = array();
        foreach ($wrappers as $classname) {
            $wrapper = new $classname();
            if (false !== $matchingclass = $wrapper->glob($pattern)) {
                $classnames = array_merge($classnames, $matchingclass);
            }
        }

        if (0 == count($classnames)) {
            return false;
        }

        return array_unique($classnames);
    }
public function glob($pattern)
    {
        // $pattern = 'Media'.DIRECTORY_SEPARATOR.'*'
        $wrappers = $this->getStreamWrapperClassname('BackBee\ClassContent', 'bb.class');
        if (0 == count($wrappers)) {
            return false;
        }

        $classnames = array();
        foreach ($wrappers as $classname) {
            $wrapper = new $classname();
            if (false !== $matchingclass = $wrapper->glob($pattern)) {
                $classnames = array_merge($classnames, $matchingclass);
            }
        }

        if (0 == count($classnames)) {
            return false;
        }

        return array_unique($classnames);
    }
public function glob ( $ pattern ) { // $pattern = 'Media'.DIRECTORY_SEPARATOR.'*' $ wrappers = $ this -> getStreamWrapperClassname ( 'BackBee\ClassContent' , 'bb.class' ) ; if ( 0 == count ( $ wrappers ) ) { return false ; } $ classnames = array ( ) ; foreach ( $ wrappers as $ classname ) { $ wrapper = new $ classname ( ) ; if ( false !== $ matchingclass = $ wrapper -> glob ( $ pattern ) ) { $ classnames = array_merge ( $ classnames , $ matchingclass ) ; } } if ( 0 == count ( $ classnames ) ) { return false ; } return array_unique ( $ classnames ) ; }
Returns AClassContent whom classname matches the provided pattern.

@param string $pattern The pattern to test

@param  string      $pattern The pattern to test
@return array|FALSE An array of classnames matching the pattern of FALSE if none found
Returns AClassContent whom classname matches the provided pattern .