original_string: 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'] );
      }
code: 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'] );
      }
code_tokens: 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' ] ) ; }
docstring: 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.
docstring_tokens: Search the storage for data .