Changeset 3870
- Timestamp:
- 02/21/08 03:08:29 (17 months ago)
- Location:
- branches/0.10/lib/Doctrine/Pager
- Files:
-
- 4 modified
-
Layout.php (modified) (1 diff)
-
Range.php (modified) (3 diffs)
-
Range/Jumping.php (modified) (1 diff)
-
Range/Sliding.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Pager/Layout.php
r3542 r3870 195 195 * getTemplate 196 196 * 197 * Returns the Template to be applied for inactive pages 197 * Returns the Template to be applied for inactive pages 198 198 * 199 199 * @return string Template to be applied for inactive pages -
branches/0.10/lib/Doctrine/Pager/Range.php
r3529 r3870 35 35 { 36 36 /** 37 * @var array $ options Custom Doctrine_Pager_Range implementation options37 * @var array $_options Custom Doctrine_Pager_Range implementation options 38 38 */ 39 protected $options;39 protected $_options; 40 40 41 41 /** … … 105 105 public function getOptions() 106 106 { 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 ); 108 127 } 109 128 … … 119 138 protected function _setOptions($options) 120 139 { 121 $this-> options = $options;140 $this->_options = $options; 122 141 } 123 142 -
branches/0.10/lib/Doctrine/Pager/Range/Jumping.php
r3529 r3870 51 51 protected function _initialize() 52 52 { 53 if (isset($this-> options['chunk'])) {54 $this->_setChunkLength($this-> options['chunk']);53 if (isset($this->_options['chunk'])) { 54 $this->_setChunkLength($this->_options['chunk']); 55 55 } else { 56 56 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 51 51 protected function _initialize() 52 52 { 53 if (isset($this-> options['chunk'])) {54 $this->_setChunkLength($this-> options['chunk']);53 if (isset($this->_options['chunk'])) { 54 $this->_setChunkLength($this->_options['chunk']); 55 55 } else { 56 56 throw new Doctrine_Pager_Exception('Missing parameter \'chunk\' that must be defined in options.');