protected function fetchSearchRegistry( $requireFresh = false )
    {
        $location = $this->properties['location'];
        if ( !is_array( $this->searchRegistry ) )
        {
            $this->searchRegistry = array();
        }
        if ( !isset( $this->searchRegistry[$location] )
             || !is_array( $this->searchRegistry[$location] ) )
        {
            $this->searchRegistry[$location] = array();
        }

        // Makes sure the registry exists
        if ( empty( $this->searchRegistry[$location] )
             || $requireFresh === true )
        {
            $this->searchRegistry[$location] = $this->backend->fetch( $this->registryName . '_' . urlencode( $location ) );
        }
    }
protected function fetchSearchRegistry( $requireFresh = false )
    {
        $location = $this->properties['location'];
        if ( !is_array( $this->searchRegistry ) )
        {
            $this->searchRegistry = array();
        }
        if ( !isset( $this->searchRegistry[$location] )
             || !is_array( $this->searchRegistry[$location] ) )
        {
            $this->searchRegistry[$location] = array();
        }

        // Makes sure the registry exists
        if ( empty( $this->searchRegistry[$location] )
             || $requireFresh === true )
        {
            $this->searchRegistry[$location] = $this->backend->fetch( $this->registryName . '_' . urlencode( $location ) );
        }
    }
protected function fetchSearchRegistry ( $ requireFresh = false ) { $ location = $ this -> properties [ 'location' ] ; if ( ! is_array ( $ this -> searchRegistry ) ) { $ this -> searchRegistry = array ( ) ; } if ( ! isset ( $ this -> searchRegistry [ $ location ] ) || ! is_array ( $ this -> searchRegistry [ $ location ] ) ) { $ this -> searchRegistry [ $ location ] = array ( ) ; } // Makes sure the registry exists if ( empty ( $ this -> searchRegistry [ $ location ] ) || $ requireFresh === true ) { $ this -> searchRegistry [ $ location ] = $ this -> backend -> fetch ( $ this -> registryName . '_' . urlencode ( $ location ) ) ; } }
Fetches the search registry from the backend or creates it if empty.

@param bool $requireFresh To create a new search registry or not
Fetches the search registry from the backend or creates it if empty .