Changeset 1258 for trunk/system/libraries/Pagination.php
- Timestamp:
- 11/25/2007 04:09:46 AM (12 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Pagination.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Pagination.php
r1230 r1258 145 145 146 146 /** 147 * Method: url148 * Gets the base_url with the specified page number.149 *150 * Parameters:151 * page - page number152 *153 * Returns:154 * Base URL with specified page number.155 */156 public function url($page = NULL)157 {158 $page = (int) (isset($page)) ? $page : $this->current_page;159 160 return str_replace('{page}', $page, $this->base_url);161 }162 163 /**164 147 * Method: sql_offset 165 148 * Gets the SQL offset of the first row to return.
