library/Garp/Browsebox.php
public function init($chunk = null) {
        if (is_null($chunk) && is_null($chunk = $this->_getCurrentStateFromRequest())) {
            $chunk = 1;
        }
        if ($chunk < 1) {
            $chunk = 1;
        }
        $this->_chunk   = $chunk;
        $this->_results = $this->_fetchContent($chunk);
        $this->_max = $this->_fetchMaxChunks();
        return $this;
    }
public function init($chunk = null) {
        if (is_null($chunk) && is_null($chunk = $this->_getCurrentStateFromRequest())) {
            $chunk = 1;
        }
        if ($chunk < 1) {
            $chunk = 1;
        }
        $this->_chunk   = $chunk;
        $this->_results = $this->_fetchContent($chunk);
        $this->_max = $this->_fetchMaxChunks();
        return $this;
    }
public function init ( $ chunk = null ) { if ( is_null ( $ chunk ) && is_null ( $ chunk = $ this -> _getCurrentStateFromRequest ( ) ) ) { $ chunk = 1 ; } if ( $ chunk < 1 ) { $ chunk = 1 ; } $ this -> _chunk = $ chunk ; $ this -> _results = $ this -> _fetchContent ( $ chunk ) ; $ this -> _max = $ this -> _fetchMaxChunks ( ) ; return $ this ; }
Initialize this browsebox - fetch content and attach to the view.
@param Int $chunk What chunk to load. If null, the browsebox tries to find its state
in the current URL. If that doesn't work, default to chunk #1.
@return Garp_Browsebox $this
Initialize this browsebox - fetch content and attach to the view .