本文整理汇总了PHP中Pagination::getFirstPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Pagination::getFirstPage方法的具体用法?PHP Pagination::getFirstPage怎么用?PHP Pagination::getFirstPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pagination
的用法示例。
在下文中一共展示了Pagination::getFirstPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initializeModule
function initializeModule($request_method, $request_data)
{
$this->groupCount = array();
$classname = ucfirst($this->directoryType) . "TypedGroupEntity";
$instance = new $classname();
$this->profilefields = $instance->get_profile_fields();
if (!empty($_REQUEST['sort_by'])) {
$this->sort_by = $_REQUEST['sort_by'];
} else {
$this->sort_by = 'name';
}
$this->sortFields = array(array('name' => 'name', 'label' => __('Name')));
foreach ($this->profilefields as $i => $field) {
if (!empty($field['sort'])) {
$this->sortFields[] = array('name' => $field['name'], 'label' => $field['label']);
}
}
// get TypedGroupEntities for this type and build paging etc
if (!empty($request_data['page'])) {
$this->page = (int) $request_data['page'];
}
$this->Paging['page'] = $this->page;
$this->Paging['show'] = $this->show;
$this->groupCount[$this->directoryType] = TypedGroupentity::get_count($this->directoryType);
// load list of entities
$this->typedGroupEntities = TypedGroupentity::get_entities($this->directoryType, $this->sort_by, $this->page, $this->show);
$this->Paging['count'] = $this->groupCount[$this->directoryType];
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
}
示例2: switch
function generate_inner_html()
{
global $app;
switch ($this->type) {
case 'forum':
$inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/forum_inner_template.tpl';
break;
default:
$inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
}
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_html_gen = new Template($inner_template);
$inner_html_gen->set('links', $this->links);
$inner_html_gen->set('back_page', PA::$url . $app->current_route);
$inner_html_gen->set('type', $this->type);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例3: Pagination
function generate_inner_html()
{
global $current_blockmodule_path;
global $number_user;
$msg = @$this->msg;
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage($this->search_data);
$this->page_last = $Pagination->getLastPage($this->search_data);
$this->page_links = $Pagination->getPageLinks($this->search_data);
switch ($this->mode) {
default:
//$tmp_file = dirname(__FILE__).'/center_inner_public.tpl';
$tmp_file = dirname(__FILE__) . '/facewall.tpl';
}
$inner_html_gen =& new Template($tmp_file);
$inner_html_gen->set('links', $this->users_data);
$inner_html_gen->set('error_msg', $msg);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html_gen->set('people_count', $this->Paging["count"]);
$row_count = ceil($this->Paging["count"] / FACEWALL_COLUMN_COUNT) > 10 ? 10 : ceil($this->Paging["count"] / FACEWALL_COLUMN_COUNT);
$number_user = $this->Paging["count"];
$inner_html_gen->set("row_count", $row_count);
$inner_html_gen->set('show_advance_search_options', $this->show_advance_search_options);
$inner_html_gen->set('search_data', $this->search_data);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例4: Comment
function generate_inner_html()
{
$links = $this->media_data;
// Here we get all the comment of that content
$comment = new Comment();
$comment->parent_id = $links->content_id;
$comment->parent_type = TYPE_CONTENT;
$this->Paging["count"] = $comment->get_multiples_comment($cnt = TRUE);
$result = $comment->get_multiples_comment($cnt = FALSE, $this->Paging["show"], $this->Paging["page"]);
$this->comments = $result;
$param = $this->handle_field_param($links);
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
switch ($this->mode) {
default:
$inner_template = dirname(__FILE__) . '/center_inner_public.tpl';
}
$info =& new Template($inner_template);
$info->set_object('param', $param);
$info->set_object('uid', $this->uid);
$info->set_object('links', $links);
$info->set_object('comments', $this->comments);
$info->set('back', $_SERVER['HTTP_REFERER']);
$info->set('page_first', $this->page_first);
$info->set('page_last', $this->page_last);
$info->set('page_links', $this->page_links);
$inner_html = $info->fetch();
return $inner_html;
}
示例5: dirname
function generate_inner_html($links)
{
global $network_info;
if ($this->market_report == TRUE) {
// if marketting report is to be viewed
$params = NULL;
$inner_template = dirname(__FILE__) . '/center_inner_market_report.tpl';
$next_prev_navigation = 'marketing_report';
if ($this->email_sorting == NULL || $this->email_sorting == 'all') {
$params = array('network_id' => $network_info->network_id, 'neglect_owner' => FALSE, 'cnt' => TRUE);
// setting variables for pagination
$this->Paging["count"] = Network::get_members($params);
unset($params['cnt']);
$params['show'] = $this->Paging['show'];
$params['page'] = $this->Paging['page'];
$users = Network::get_members($params);
$this->email_addresses = $users['users_data'];
} else {
if ($this->email_sorting == 'dormant') {
$params = array("order_by" => 3);
// 3 for sort by dormant user
}
$this->Paging["count"] = Ranking::get_top_ranked_users(TRUE, $params);
$params['show'] = $this->Paging['show'];
$params['page'] = $this->Paging['page'];
$this->email_addresses = Ranking::get_top_ranked_users(FALSE, $params);
}
// Set pagination variable
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
} else {
$inner_template = dirname(__FILE__) . '/center_inner_private.tpl';
$next_prev_navigation = 'mis_count';
}
$obj_inner_template =& new Template($inner_template);
$obj_inner_template->set('links', $links);
$obj_inner_template->set('email_domain_array', $this->email_domain_array);
$obj_inner_template->set('blog_post', $this->blog_post);
$obj_inner_template->set('images', $this->images);
$obj_inner_template->set('profile_views', $this->profile_views);
$obj_inner_template->set('profile_visits_by_user', $this->profile_visits_by_user);
$obj_inner_template->set('relationship_stats', $this->relationship_stats);
$obj_inner_template->set('emails', $this->email_addresses);
$obj_inner_template->set('page_first', $this->page_first);
$obj_inner_template->set('page_last', $this->page_last);
$obj_inner_template->set('page_links', $this->page_links);
$obj_inner_template->set('parameters', Ranking::get_parameters());
$obj_inner_template->set('config_navigation_url', network_config_navigation($next_prev_navigation));
$inner_html = $obj_inner_template->fetch();
return $inner_html;
}
示例6: dirname
function generate_inner_html()
{
$tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
$inner_html_gen =& new Template($tmp_file);
$inner_html_gen->set('links', $this->links);
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例7: Template
function generate_inner_html()
{
$tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl';
$inner_html_gen = new Template($tmp_file, $this);
$inner_html_gen->set('links', $this->links);
$inner_html_gen->set('mode', $this->mode);
$Pagination = new Pagination();
// $Pagination->page_var = 'pg';
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例8: Pagination
function generate_inner_html()
{
$links = $this->get_links();
// set links for pagination
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
$inner_html_gen = new Template($tmp_file, $this);
$inner_html_gen->set('links', $links);
$inner_html_gen->set('edit', $this->edit);
$inner_html_gen->set('form_data', $this->form_data);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例9: Pagination
function generate_inner_html()
{
$links = $this->get_links();
// set links for pagination
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$tmp_file = dirname(__FILE__) . '/center_inner_private.tpl';
$inner_html_gen =& new Template($tmp_file);
$inner_html_gen->set('links', $links);
$inner_html_gen->set('selected', $this->selected);
$inner_html_gen->set('form_data', @$this->form_data);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例10: switch
function generate_inner_html()
{
switch ($this->mode) {
default:
$inner_template = dirname(__FILE__) . '/center_inner_public.tpl';
}
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_html_gen =& new Template($inner_template);
$inner_html_gen->set('links', $this->links);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html_gen->set('config_navigation_url', network_config_navigation('manage_comments'));
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例11: switch
function generate_inner_html()
{
switch ($this->mode) {
default:
$inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
}
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_html_gen = new Template($inner_template);
$inner_html_gen->set('links', $this->links);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html_gen->set('super_user_and_mothership', $this->super_user_and_mothership);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例12: switch
/** this function set variable for tpls
* and fetches the respective tpl
*/
function generate_inner_html()
{
switch ($this->mode) {
default:
$inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl';
}
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_html_gen = new Template($inner_template);
$inner_html_gen->set('links', $this->links);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html_gen->set('config_navigation_url', network_config_navigation('moderate_content'));
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例13: switch
function generate_inner_html()
{
switch ($this->mode) {
default:
$inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl';
}
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_html_gen = new Template($inner_template);
$inner_html_gen->set('links', $this->links);
$inner_html_gen->set('show_view', $this->show_view);
$inner_html_gen->set('item_id', $this->item_id);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例14: Pagination
function generate_inner_html()
{
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$inner_template = NULL;
switch ($this->mode) {
default:
$inner_template = dirname(__FILE__) . '/center_inner_public.tpl';
}
$inner_html_gen =& new Template($inner_template);
$inner_html_gen->set('links', $this->links);
$inner_html_gen->set('search_str', get_tag_search_option());
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例15: Pagination
function generate_inner_html()
{
$links = $this->get_links();
// set links for pagination
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_first = $Pagination->getFirstPage();
$this->page_last = $Pagination->getLastPage();
$this->page_links = $Pagination->getPageLinks();
$tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
$inner_html_gen =& new Template($tmp_file);
$inner_html_gen->set('links', $links);
$inner_html_gen->set('edit', $this->edit);
$inner_html_gen->set('form_data', $this->form_data);
$inner_html_gen->set('page_first', $this->page_first);
$inner_html_gen->set('page_last', $this->page_last);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html_gen->set('config_navigation_url', network_config_navigation('manage_ad_center'));
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}