Changeset 3870

Show
Ignore:
Timestamp:
02/21/08 03:08:29 (17 months ago)
Author:
guilhermeblanco
Message:

Pager updates and cosmetics

Location:
branches/0.10/lib/Doctrine/Pager
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Pager/Layout.php

    r3542 r3870  
    195195     * getTemplate 
    196196     * 
    197      * Returns the Template to be applied for inactive pages  
     197     * Returns the Template to be applied for inactive pages 
    198198     * 
    199199     * @return string        Template to be applied for inactive pages 
  • branches/0.10/lib/Doctrine/Pager/Range.php

    r3529 r3870  
    3535{ 
    3636    /** 
    37      * @var array $options     Custom Doctrine_Pager_Range implementation options 
     37     * @var array $_options     Custom Doctrine_Pager_Range implementation options 
    3838     */ 
    39         protected $options; 
     39    protected $_options; 
    4040 
    4141    /** 
     
    105105    public function getOptions() 
    106106    { 
    107         return $this->options; 
     107        return $this->_options; 
     108    } 
     109 
     110 
     111    /** 
     112     * getOption 
     113     * 
     114     * Returns the custom Doctrine_Pager_Range implementation offset option 
     115     * 
     116     * @return array        Custom Doctrine_Pager_Range implementation options 
     117     */ 
     118    public function getOption($option) 
     119    { 
     120        if (isset($this->_options[$option])) { 
     121            return $this->_options[$option]; 
     122        } 
     123 
     124        throw new Doctrine_Pager_Exception( 
     125            'Cannot access unexistent option \'' . $option . '\' in Doctrine_Pager_Range class' 
     126        ); 
    108127    } 
    109128 
     
    119138    protected function _setOptions($options) 
    120139    { 
    121         $this->options = $options; 
     140        $this->_options = $options; 
    122141    } 
    123142 
  • branches/0.10/lib/Doctrine/Pager/Range/Jumping.php

    r3529 r3870  
    5151    protected function _initialize() 
    5252    { 
    53         if (isset($this->options['chunk'])) { 
    54             $this->_setChunkLength($this->options['chunk']); 
     53        if (isset($this->_options['chunk'])) { 
     54            $this->_setChunkLength($this->_options['chunk']); 
    5555        } else { 
    5656            throw new Doctrine_Pager_Exception('Missing parameter \'chunk\' that must be define in options.'); 
  • branches/0.10/lib/Doctrine/Pager/Range/Sliding.php

    r3529 r3870  
    5151    protected function _initialize() 
    5252    { 
    53         if (isset($this->options['chunk'])) { 
    54             $this->_setChunkLength($this->options['chunk']); 
     53        if (isset($this->_options['chunk'])) { 
     54            $this->_setChunkLength($this->_options['chunk']); 
    5555        } else { 
    5656            throw new Doctrine_Pager_Exception('Missing parameter \'chunk\' that must be defined in options.');