src/core/framework/core/3rdparty/ezcomponents/Cache/src/storage/file.php
protected function searchRecursive( $pattern, $directory )
    {
        $itemArr = glob( $directory . $pattern );
        $dirArr = glob( $directory . "*", GLOB_ONLYDIR );
        foreach ( $dirArr as $dirEntry )
        {
            $result = $this->searchRecursive( $pattern, "$dirEntry/" );
            $itemArr = array_merge( $itemArr, $result );
        }
        return $itemArr;
    }
protected function searchRecursive( $pattern, $directory )
    {
        $itemArr = glob( $directory . $pattern );
        $dirArr = glob( $directory . "*", GLOB_ONLYDIR );
        foreach ( $dirArr as $dirEntry )
        {
            $result = $this->searchRecursive( $pattern, "$dirEntry/" );
            $itemArr = array_merge( $itemArr, $result );
        }
        return $itemArr;
    }
protected function searchRecursive ( $ pattern , $ directory ) { $ itemArr = glob ( $ directory . $ pattern ) ; $ dirArr = glob ( $ directory . "*" , GLOB_ONLYDIR ) ; foreach ( $ dirArr as $ dirEntry ) { $ result = $ this -> searchRecursive ( $ pattern , "$dirEntry/" ) ; $ itemArr = array_merge ( $ itemArr , $ result ) ; } return $ itemArr ; }
Search the storage for data recursively.

@param string $pattern  Pattern used with {@link glob()}.
@param mixed $directory Directory to search in.
@return array(int=>string) Found cache items.
Search the storage for data recursively .