original_string: protected function registerIdentifier( $id = null, $attributes = array(), $identifier = null )
      {
          $identifier = ( $identifier !== null ) ? $identifier : $this->generateIdentifier( $id, $attributes );
          $location = $this->properties['location'];
  
          $this->fetchSearchRegistry();
  
          // Makes sure the identifier exists
          if ( !isset( $this->searchRegistry[$location][$id][$identifier] ) )
          {
              // Makes sure the id exists
              if ( !isset( $this->searchRegistry[$location][$id] )
                   || !is_array( $this->searchRegistry[$location][$id] ) )
              {
                  $this->searchRegistry[$location][$id] = array();
              }
  
              $this->searchRegistry[$location][$id][$identifier] = new ezcCacheStorageMemoryRegisterStruct( $id, $attributes, $identifier, $location );
              $this->storeSearchRegistry();
          }
      }
code: protected function registerIdentifier( $id = null, $attributes = array(), $identifier = null )
      {
          $identifier = ( $identifier !== null ) ? $identifier : $this->generateIdentifier( $id, $attributes );
          $location = $this->properties['location'];
  
          $this->fetchSearchRegistry();
  
          // Makes sure the identifier exists
          if ( !isset( $this->searchRegistry[$location][$id][$identifier] ) )
          {
              // Makes sure the id exists
              if ( !isset( $this->searchRegistry[$location][$id] )
                   || !is_array( $this->searchRegistry[$location][$id] ) )
              {
                  $this->searchRegistry[$location][$id] = array();
              }
  
              $this->searchRegistry[$location][$id][$identifier] = new ezcCacheStorageMemoryRegisterStruct( $id, $attributes, $identifier, $location );
              $this->storeSearchRegistry();
          }
      }
code_tokens: protected function registerIdentifier ( $ id = null , $ attributes = array ( ) , $ identifier = null ) { $ identifier = ( $ identifier !== null ) ? $ identifier : $ this -> generateIdentifier ( $ id , $ attributes ) ; $ location = $ this -> properties [ 'location' ] ; $ this -> fetchSearchRegistry ( ) ; // Makes sure the identifier exists if ( ! isset ( $ this -> searchRegistry [ $ location ] [ $ id ] [ $ identifier ] ) ) { // Makes sure the id exists if ( ! isset ( $ this -> searchRegistry [ $ location ] [ $ id ] ) || ! is_array ( $ this -> searchRegistry [ $ location ] [ $ id ] ) ) { $ this -> searchRegistry [ $ location ] [ $ id ] = array ( ) ; } $ this -> searchRegistry [ $ location ] [ $ id ] [ $ identifier ] = new ezcCacheStorageMemoryRegisterStruct ( $ id , $ attributes , $ identifier , $ location ) ; $ this -> storeSearchRegistry ( ) ; } }
docstring: Registers an identifier to facilitate searching.
  
  @param string $id ID for the cache item
  @param array $attributes Attributes for the cache item
  @param string $identifier Identifier generated for the cache item
docstring_tokens: Registers an identifier to facilitate searching .