Constructor
public __construct ( array $params = [] ) : void | ||
$params | array | Initialization parameters |
리턴 | void |
public function __construct() { parent::__construct(); $this->enable_query_strings = true; $this->query_string_segment = 'page'; $this->page_query_string = true; $this->cur_page = 1; $this->num_links = 3; $this->per_page = 20; $this->next_link = 'Next ›'; $this->prev_link = '‹ Previous'; $this->prev_tag_open = $this->next_tag_open = $this->num_tag_open = '<li>'; $this->prev_tag_close = $this->next_tag_close = $this->num_tag_close = '</li>'; $this->cur_tag_open = '<li class="active"><a href="#">'; $this->cur_tag_close = '</a></li>'; /* $this->prev_tag_close = '</li>'; $this->next_tag_open = '<li>'; $this->next_tag_close = '</li>'; $this->num_tag_open = '<li>'; $this->num_tag_close = '</li>'; */ $this->first_link = false; $this->last_link = false; $this->full_tag_open = '<ul>'; $this->full_tag_close = '</ul>'; }
public function __construct($custom_params = array()) { parent::__construct(); $this->CI->load->helper('url'); $params = $this->CI->config->item('pagination_datas', 'blog'); $this->initialize(array_merge($params, $custom_params)); }
function __construct() { parent::__construct(); $this->full_tag_open = '<span class="active">'; $this->full_tag_close = '</span>'; //$this->full_tag_open = '<div id="next-pre">'; //$this->full_tag_close = '</div>'; $this->per_page = 2; }
/** * Constructor * * @param array $params Initialization parameters * @return void */ public function __construct($params = array()) { parent::__construct(); log_message('debug', 'XU Pagination Class Initialized'); $this->first_link = lang('‹ First'); $this->next_link = lang('>'); $this->prev_link = lang('<'); $this->last_link = lang('Last ›'); }
public function __construct($config) { parent::__construct(); $CI =& get_instance(); $CI->config->load('pagination'); $config = $CI->config->item('pagination') + $config; $this->initialize($config); $this->links = $this->create_links(); $this->query = $this->suffix; }
public function __construct() { parent::__construct(); $CI =& get_instance(); log_message('debug', "MY custom Pagination Class Initialized"); $this->first_link = lang('lang_first'); $this->last_link = lang('lang_last'); $this->pagination_selector = 'page'; $this->_set_pagination_offset(); }
public function MY_Pagination() { parent::__construct(); $CI = get_instance(); $this->values['per_page'] = $CI->config->item('rowsPerPage'); $this->values['first_link'] = '«'; $this->values['next_link'] = '>'; $this->values['prev_link'] = '<'; $this->values['last_link'] = '»'; $this->values['cur_tag_open'] = ' <strong>'; $this->values['cur_tag_close'] = '</strong> '; }
function __construct($params = array()) { parent::__construct($params); $CI =& get_instance(); if (isset($_GET['per_page'])) { $CI->session->set_userdata('per_page', $_GET['per_page']); $this->per_page = $_GET['per_page']; // redirect($this->base_url); } else { $per_page = $CI->session->userdata('per_page'); if (!empty($per_page)) { $this->per_page = $per_page; } } }
function __construct($params) { parent::__construct(); $config['base_url'] = base_url($params['base_url']); $config['total_rows'] = $params['total']; $config['per_page'] = $params['per_page']; $config['full_tag_open'] = '<div class="pagination"><ul>'; $config['full_tag_close'] = '</ul></div>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['prev_tag_open'] = '<li>'; $config['prev_tag_close'] = '</li>'; $this->initialize($config); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->initialize($this->_config); }
public function __construct($params = array()) { parent::__construct($params); }
public function __construct() { $this->EE =& get_instance(); parent::__construct(); }
function __construct() { parent::__construct(); log_message('debug', "MY_Pagination Class Initialized"); $this->_set_pagination_offset(); }
function __construct() { parent::__construct(); $CI =& get_instance(); log_message('debug', "MY_Pagination Class Initialized"); if ($CI->config->item('pagination_selector') == '') { show_error('config->item(\'pagination_selector\') is not set. Set config->item(\'pagination_selector\') in a config file, or $this->pagination->$this->pagination_selector'); } else { $this->pagination_selector = $CI->config->item('pagination_selector'); } $this->_set_pagination_offset(); }
function Ajax_pagination($params = array()) { parent::__construct($params); }
public function __construct() { parent::__construct(); $this->first_link = '‹ ' . lang('First'); $this->last_link = lang('Last') . ' ›'; }
public function __construct() { parent::__construct(); $this->_ci =& get_instance(); }