X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FPager.php;h=29ff89495d90da10b2ea95bb1b29505efef089a0;hb=797e52dd0534ee102240cb78eb71fcce95a3153e;hp=856b1b82e952620ac12f088f8aa21c43193ec235;hpb=cbc5ea8f3b86c5bc7852bd708fc59b918cb40bf9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Pager.php b/includes/Pager.php index 856b1b82e9..29ff89495d 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -143,7 +143,7 @@ abstract class IndexPager extends ContextSource implements Pager { $this->mOffset = $this->mRequest->getText( 'offset' ); # Use consistent behavior for the limit options - $this->mDefaultLimit = intval( $this->getUser()->getOption( 'rclimit' ) ); + $this->mDefaultLimit = $this->getUser()->getIntOption( 'rclimit' ); if ( !$this->mLimit ) { // Don't override if a subclass calls $this->setLimit() in its constructor. list( $this->mLimit, /* $offset */ ) = $this->mRequest->getLimitOffset(); @@ -269,7 +269,7 @@ abstract class IndexPager extends ContextSource implements Pager { * Extract some useful data from the result object for use by * the navigation bar, put it into $this * - * @param $offset String: index offset, inclusive + * @param string $offset index offset, inclusive * @param $limit Integer: exact query limit * @param $res ResultWrapper */ @@ -335,7 +335,7 @@ abstract class IndexPager extends ContextSource implements Pager { * Do a query with specified parameters, rather than using the object * context * - * @param $offset String: index offset, inclusive + * @param string $offset index offset, inclusive * @param $limit Integer: exact query limit * @param $descending Boolean: query direction, false for ascending, true for descending * @return ResultWrapper @@ -348,7 +348,7 @@ abstract class IndexPager extends ContextSource implements Pager { /** * Build variables to use by the database wrapper. * - * @param $offset String: index offset, inclusive + * @param string $offset index offset, inclusive * @param $limit Integer: exact query limit * @param $descending Boolean: query direction, false for ascending, true for descending * @return array @@ -431,9 +431,9 @@ abstract class IndexPager extends ContextSource implements Pager { /** * Make a self-link * - * @param $text String: text displayed on the link - * @param $query Array: associative array of paramter to be in the query string - * @param $type String: value of the "rel" attribute + * @param string $text text displayed on the link + * @param array $query associative array of paramter to be in the query string + * @param string $type value of the "rel" attribute * * @return String: HTML fragment */ @@ -709,7 +709,6 @@ abstract class IndexPager extends ContextSource implements Pager { protected function getDefaultDirections() { return false; } } - /** * IndexPager with an alphabetic list and a formatted navigation bar * @ingroup Pager @@ -866,7 +865,7 @@ abstract class ReverseChronologicalPager extends IndexPager { if ( $this->mMonth ) { $month = $this->mMonth + 1; // For December, we want January 1 of the next year - if ($month > 12) { + if ( $month > 12 ) { $month = 1; $year++; } @@ -1048,8 +1047,8 @@ abstract class TablePager extends IndexPager { * * @protected * - * @param $field String The column - * @param $value String The cell contents + * @param string $field The column + * @param string $value The cell contents * @return Array of attr => value */ function getCellAttrs( $field, $value ) { @@ -1178,7 +1177,7 @@ abstract class TablePager extends IndexPager { * Resubmits all defined elements of the query string, except for a * blacklist, passed in the $blacklist parameter. * - * @param $blacklist Array parameters from the request query which should not be resubmitted + * @param array $blacklist parameters from the request query which should not be resubmitted * @return String: HTML fragment */ function getHiddenFields( $blacklist = array() ) { @@ -1244,8 +1243,8 @@ abstract class TablePager extends IndexPager { * * @protected * - * @param $name String: the database field name - * @param $value String: the value retrieved from the database + * @param string $name the database field name + * @param string $value the value retrieved from the database */ abstract function formatValue( $name, $value );