library/Garp/Browsebox.php
protected function _getCurrentStateFromRequest() {
        $here = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
        $queryString = parse_url($here, PHP_URL_QUERY);
        parse_str($queryString, $queryComponents);      
        if (!empty($queryComponents[Garp_Browsebox::BROWSEBOX_QUERY_IDENTIFIER][$this->getId()])) {
            $chunk = $queryComponents[Garp_Browsebox::BROWSEBOX_QUERY_IDENTIFIER][$this->getId()];          
            return $chunk;
        }
        return null;
    }
protected function _getCurrentStateFromRequest() {
        $here = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
        $queryString = parse_url($here, PHP_URL_QUERY);
        parse_str($queryString, $queryComponents);      
        if (!empty($queryComponents[Garp_Browsebox::BROWSEBOX_QUERY_IDENTIFIER][$this->getId()])) {
            $chunk = $queryComponents[Garp_Browsebox::BROWSEBOX_QUERY_IDENTIFIER][$this->getId()];          
            return $chunk;
        }
        return null;
    }
protected function _getCurrentStateFromRequest ( ) { $ here = Zend_Controller_Front :: getInstance ( ) -> getRequest ( ) -> getRequestUri ( ) ; $ queryString = parse_url ( $ here , PHP_URL_QUERY ) ; parse_str ( $ queryString , $ queryComponents ) ; if ( ! empty ( $ queryComponents [ Garp_Browsebox :: BROWSEBOX_QUERY_IDENTIFIER ] [ $ this -> getId ( ) ] ) ) { $ chunk = $ queryComponents [ Garp_Browsebox :: BROWSEBOX_QUERY_IDENTIFIER ] [ $ this -> getId ( ) ] ; return $ chunk ; } return null ; }
Find out wether the current browsebox has a state available in the current URL.
@see self::createStateUrl() for an explanation on what the URL format looks like.
@return Int The requested chunk if found, or NULL.
Find out wether the current browsebox has a state available in the current URL .