<commit_before><?php
/* SVN FILE: $Id$ */
/**
 * Pagination Helper class file.
 *
 * Generates pagination links
 *
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.helpers
 * @since         CakePHP(tm) v 1.2.0
 * @version       $Revision$
 * @modifiedby    $LastChangedBy$
 * @lastmodified  $Date$
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
/**
 * Pagination Helper class for easy generation of pagination links.
 *
 * PaginationHelper encloses all methods needed when working with pagination.
 *
 * @package       cake
 * @subpackage    cake.cake.libs.view.helpers
 */
class PaginatorHelper extends AppHelper {
/**
 * Helper dependencies
 *
 * @var array
 */
	var $helpers = array('Html', 'Ajax');
/**
 * Holds the default model for paged recordsets
 *
 * @var string
 */
	var $__defaultModel = null;
/**
 * Holds the default options for pagination links
 *
 * The values that may be specified are:
 *
 *  - <i>$options['format']</i> Format of the counter. Supported formats are 'range' and 'pages'
 *   and custom (default). In the default mode the supplied string is parsed and constants are replaced
 *   by their actual values.
 *   Constants: %page%, %pages%, %current%, %count%, %start%, %end% .
 *  - <i>$options['separator']</i> The separator of the actual page and number of pages (default: ' of ').
 *  - <i>$options['url']</i> Url of the action. See Router::url()
 *  - <i>$options['url']['sort']</i>  the key that the recordset is sorted.
 *  - <i>$options['url']['direction']</i> Direction of the sorting (default: 'asc').
 *  - <i>$options['url']['page']</i> Page # to display.
 *  - <i>$options['model']</i> The name of the model.
 *  - <i>$options['escape']</i> Defines if the title field for the link should be escaped (default: true).
 *  - <i>$options['update']</i> DOM id of the element updated with the results of the AJAX call.
 *                             If this key isn't specified Paginator will use plain HTML links.
 *  - <i>$options['indicator']</i> DOM id of the element that will be shown when doing AJAX requests.
 *
 * @var array
 */
	var $options = array();
/**
 * Gets the current page of the in the recordset for the given model
 *
 * @param  string $model Optional model name.  Uses the default if none is specified.
 * @return string The current page number of the paginated resultset.
 */
	function params($model = null) {
		if (empty($model)) {
			$model = $this->defaultModel();
		}<commit_msg>Updating doc blocks for paginator helper. Thanks to savant for the patch. Fixes #4994.<commit_after><?php
/* SVN FILE: $Id$ */
/**
 * Pagination Helper class file.
 *
 * Generates pagination links
 *
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.helpers
 * @since         CakePHP(tm) v 1.2.0
 * @version       $Revision$
 * @modifiedby    $LastChangedBy$
 * @lastmodified  $Date$
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
/**
 * Pagination Helper class for easy generation of pagination links.
 *
 * PaginationHelper encloses all methods needed when working with pagination.
 *
 * @package       cake
 * @subpackage    cake.cake.libs.view.helpers
 */
class PaginatorHelper extends AppHelper {
/**
 * Helper dependencies
 *
 * @var array
 */
	var $helpers = array('Html', 'Ajax');
/**
 * Holds the default model for paged recordsets
 *
 * @var string
 */
	var $__defaultModel = null;
/**
 * Holds the default options for pagination links
 *
 * The values that may be specified are:
 *
 *  - <i>$options['format']</i> Format of the counter. Supported formats are 'range' and 'pages'
 *   and custom (default). In the default mode the supplied string is parsed and constants are replaced
 *   by their actual values.
 *   Constants: %page%, %pages%, %current%, %count%, %start%, %end% .
 *  - <i>$options['separator']</i> The separator of the actual page and number of pages (default: ' of ').
 *  - <i>$options['url']</i> Url of the action. See Router::url()
 *  - <i>$options['url']['sort']</i>  the key that the recordset is sorted.
 *  - <i>$options['url']['direction']</i> Direction of the sorting (default: 'asc').
 *  - <i>$options['url']['page']</i> Page # to display.
 *  - <i>$options['model']</i> The name of the model.
 *  - <i>$options['escape']</i> Defines if the title field for the link should be escaped (default: true).
 *  - <i>$options['update']</i> DOM id of the element updated with the results of the AJAX call.
 *                             If this key isn't specified Paginator will use plain HTML links.
 *  - <i>$options['indicator']</i> DOM id of the element that will be shown when doing AJAX requests.
 *
 * @var array
 */
	var $options = array();
/**
 * Gets the current paging parameters from the resultset for the given model
 *
 * @param  string $model Optional model name.  Uses the default if none is specified.
 * @return array The array of paging parameters for the paginated resultset.
 */
	function params($model = null) {
		if (empty($model)) {
			$model = $this->defaultModel();
		}
{'fraction_non_alphanumeric': 0.13707268503153003, 'fraction_numerical': 0.0069697975439761035, 'mean_word_length': 3.383272727272727, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3206354', 'n_tokens_mistral': 1888, 'n_tokens_neox': 1776, 'n_words': 639}