Changeset 3878
- Timestamp:
- 02/21/08 16:06:46 (17 months ago)
- Files:
-
- 4 modified
-
branches/0.10/lib/Doctrine/Pager/Range.php (modified) (1 diff)
-
branches/0.10/manual/docs/en/utilities/pagination/controlling-range-styles.txt (modified) (1 diff)
-
trunk/lib/Doctrine/Pager/Range.php (modified) (1 diff)
-
trunk/manual/docs/en/utilities/pagination/controlling-range-styles.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Pager/Range.php
r3870 r3878 143 143 144 144 /** 145 * isInRange 146 * 147 * Check if a given page is in the range 148 * 149 * @param $page Page to be checked 150 * @return boolean 151 */ 152 public function isInRange($page) 153 { 154 return (array_search($page, $this->rangeAroundPage()) !== false); 155 } 156 157 158 159 /** 145 160 * _initialize 146 161 * -
branches/0.10/manual/docs/en/utilities/pagination/controlling-range-styles.txt
r3873 r3878 76 76 $pager_range->getOption($option); 77 77 78 // Check if a given page is in the range 79 $pager_range->isInRange($page); 80 78 81 // Return the range around the current page (obtained from Doctrine_Pager 79 82 // associated to the $pager_range instance) -
trunk/lib/Doctrine/Pager/Range.php
r3872 r3878 143 143 144 144 /** 145 * isInRange 146 * 147 * Check if a given page is in the range 148 * 149 * @param $page Page to be checked 150 * @return boolean 151 */ 152 public function isInRange($page) 153 { 154 return (array_search($page, $this->rangeAroundPage()) !== false); 155 } 156 157 158 /** 145 159 * _initialize 146 160 * -
trunk/manual/docs/en/utilities/pagination/controlling-range-styles.txt
r3873 r3878 76 76 $pager_range->getOption($option); 77 77 78 // Check if a given page is in the range 79 $pager_range->isInRange($page); 80 78 81 // Return the range around the current page (obtained from Doctrine_Pager 79 82 // associated to the $pager_range instance)