src/core/framework/core/3rdparty/ezcomponents/Cache/src/storage/file.php
protected function search( $id = null, $attributes = array() )
    {
        $globArr = explode( "-", $this->generateIdentifier( $id, $attributes ), 2 );
        if ( sizeof( $globArr ) > 1 )
        {
            $glob = $globArr[0]  . "-" . strtr( $globArr[1], array( '-' => '*', '.' => '*' ) );
        }
        else
        {
            $glob = strtr( $globArr[0], array( '-' => '*', '.' => '*' ) );
        }
        $glob = ( $id === null ? '*' : '' ) . $glob;
        return $this->searchRecursive( $glob, $this->properties['location'] );
    }
protected function search( $id = null, $attributes = array() )
    {
        $globArr = explode( "-", $this->generateIdentifier( $id, $attributes ), 2 );
        if ( sizeof( $globArr ) > 1 )
        {
            $glob = $globArr[0]  . "-" . strtr( $globArr[1], array( '-' => '*', '.' => '*' ) );
        }
        else
        {
            $glob = strtr( $globArr[0], array( '-' => '*', '.' => '*' ) );
        }
        $glob = ( $id === null ? '*' : '' ) . $glob;
        return $this->searchRecursive( $glob, $this->properties['location'] );
    }
protected function search ( $ id = null , $ attributes = array ( ) ) { $ globArr = explode ( "-" , $ this -> generateIdentifier ( $ id , $ attributes ) , 2 ) ; if ( sizeof ( $ globArr ) > 1 ) { $ glob = $ globArr [ 0 ] . "-" . strtr ( $ globArr [ 1 ] , array ( '-' => '*' , '.' => '*' ) ) ; } else { $ glob = strtr ( $ globArr [ 0 ] , array ( '-' => '*' , '.' => '*' ) ) ; } $ glob = ( $ id === null ? '*' : '' ) . $ glob ; return $ this -> searchRecursive ( $ glob , $ this -> properties [ 'location' ] ) ; }
Search the storage for data.

@param string $id                         An item ID.
@param array(string=>string) $attributes  Attributes describing the
data to restore.
@return array(int=>string) Found cache items.
Search the storage for data .