|
|
@@ -134,6 +134,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param mixed $options Default options for pagination links. If a string is supplied - it
|
|
|
* is used as the DOM id element to update. See PaginatorHelper::$options for list of keys.
|
|
|
* @return void
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::options
|
|
|
*/
|
|
|
public function options($options = array()) {
|
|
|
if (is_string($options)) {
|
|
|
@@ -245,6 +246,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param string $disabledTitle Title when the link is disabled.
|
|
|
* @param array $disabledOptions Options for the disabled pagination link. See #options for list of keys.
|
|
|
* @return string A "previous" link or $disabledTitle text if the link is disabled.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::prev
|
|
|
*/
|
|
|
public function prev($title = '<< Previous', $options = array(), $disabledTitle = null, $disabledOptions = array()) {
|
|
|
$defaults = array(
|
|
|
@@ -268,6 +270,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param string $disabledTitle Title when the link is disabled.
|
|
|
* @param mixed $disabledOptions Options for the disabled pagination link. See above for list of keys.
|
|
|
* @return string A "next" link or or $disabledTitle text if the link is disabled.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::next
|
|
|
*/
|
|
|
public function next($title = 'Next >>', $options = array(), $disabledTitle = null, $disabledOptions = array()) {
|
|
|
$defaults = array(
|
|
|
@@ -293,6 +296,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param array $options Options for sorting link. See above for list of keys.
|
|
|
* @return string A link sorting default by 'asc'. If the resultset is sorted 'asc' by the specified
|
|
|
* key the returned link will sort by 'desc'.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::sort
|
|
|
*/
|
|
|
public function sort($key, $title = null, $options = array()) {
|
|
|
$options = array_merge(array('url' => array(), 'model' => null), $options);
|
|
|
@@ -345,6 +349,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param mixed $url Url for the action. See Router::url()
|
|
|
* @param array $options Options for the link. See #options for list of keys.
|
|
|
* @return string A link with pagination parameters.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::link
|
|
|
*/
|
|
|
public function link($title, $url = array(), $options = array()) {
|
|
|
$options = array_merge(array('model' => null, 'escape' => true), $options);
|
|
|
@@ -373,6 +378,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param boolean $asArray Return the url as an array, or a URI string
|
|
|
* @param string $model Which model to paginate on
|
|
|
* @return mixed By default, returns a full pagination URL string for use in non-standard contexts (i.e. JavaScript)
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::url
|
|
|
*/
|
|
|
public function url($options = array(), $asArray = false, $model = null) {
|
|
|
$paging = $this->params($model);
|
|
|
@@ -547,6 +553,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param mixed $options Options for the counter string. See #options for list of keys.
|
|
|
* @return string Counter string.
|
|
|
* @deprecated The %page% style placeholders are deprecated.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::counter
|
|
|
*/
|
|
|
public function counter($options = array()) {
|
|
|
if (is_string($options)) {
|
|
|
@@ -630,6 +637,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
*
|
|
|
* @param mixed $options Options for the numbers, (before, after, model, modulus, separator)
|
|
|
* @return string numbers string.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::numbers
|
|
|
*/
|
|
|
public function numbers($options = array()) {
|
|
|
if ($options === true) {
|
|
|
@@ -766,6 +774,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* you want at the beginning of the range.
|
|
|
* @param mixed $options An array of options.
|
|
|
* @return string numbers string.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::first
|
|
|
*/
|
|
|
public function first($first = '<< first', $options = array()) {
|
|
|
$options = array_merge(
|
|
|
@@ -831,6 +840,7 @@ class PaginatorHelper extends AppHelper {
|
|
|
* @param mixed $last if string use as label for the link, if numeric print page numbers
|
|
|
* @param mixed $options Array of options
|
|
|
* @return string numbers string.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper::last
|
|
|
*/
|
|
|
public function last($last = 'last >>', $options = array()) {
|
|
|
$options = array_merge(
|