src/core/framework/core/3rdparty/ezcomponents/Cache/src/storage/memory.php
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();
        }
    }
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();
        }
    }
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 ( ) ; } }
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
Registers an identifier to facilitate searching .