本文整理汇总了PHP中Pagination::getPageLinks方法的典型用法代码示例。如果您正苦于以下问题:PHP Pagination::getPageLinks方法的具体用法?PHP Pagination::getPageLinks怎么用?PHP Pagination::getPageLinks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pagination
的用法示例。
在下文中一共展示了Pagination::getPageLinks方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Pagination
function generate_inner_html()
{
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_prev = $Pagination->getPreviousPage();
$this->page_next = $Pagination->getNextPage();
$this->page_links = $Pagination->getPageLinks();
$inner_template = NULL;
switch ($this->mode) {
case 'relations':
case 'in_relations':
$inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public_relation.tpl';
break;
default:
$inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public_relation.tpl';
}
$obj_inner_template = new Template($inner_template, $this);
$obj_inner_template->set_object('links', $this->links);
$obj_inner_template->set_object('gid', @$this->gid);
$obj_inner_template->set('sub_title', @$this->sub_title);
$obj_inner_template->set('total', $this->Paging['count']);
$obj_inner_template->set('reciprocated_relationship_set', @$this->reciprocated_relationship_set);
$obj_inner_template->set('relations', @$this->relations);
$obj_inner_template->set('in_relations', @$this->in_relations);
$obj_inner_template->set('user_name', $this->page_user);
$obj_inner_template->set('page_prev', $this->page_prev);
$obj_inner_template->set('page_next', $this->page_next);
$obj_inner_template->set('page_links', $this->page_links);
$obj_inner_template->set('view_type', $this->view_type);
$inner_html = $obj_inner_template->fetch();
return $inner_html;
}
示例2: 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;
}
示例3: initializeModule
public function initializeModule($request_method, $request_data)
{
global $paging;
$this->Paging = $paging;
if (!empty($this->shared_data['group_info'])) {
$this->family = $this->shared_data['group_info'];
$this->set_id = $this->family->collection_id;
} else {
if (!empty($request_data['gid'])) {
$this->family = ContentCollection::load_collection((int) $request_data['gid']);
$this->set_id = $request_data['gid'];
} else {
return 'skip';
}
}
if (!empty($request_data['action']) && $request_data['action'] == 'addChild') {
$this->set_inner_template('add_child.tpl');
} else {
if (!empty($request_data['view'])) {
$this->view = $request_data['view'];
if ($this->view == 'members') {
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_prev = $Pagination->getPreviousPage();
$this->page_next = $Pagination->getNextPage();
$this->page_links = $Pagination->getPageLinks();
$this->get_links();
$this->set_inner_template('center_inner_public.tpl');
$templ_vars = array('links' => $this->members_data, 'page_prev' => $this->page_prev, 'page_next' => $this->page_next, 'page_links' => $this->page_links, 'page_first' => $this->page_first, 'page_last' => $this->page_last, 'family_id' => $this->set_id, 'div_visible_for_moderation' => $this->view);
$this->inner_HTML = $this->generate_inner_html($templ_vars);
}
}
}
}
示例4: Pagination
function generate_inner_html()
{
global $current_theme_path, $base_url;
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_prev = $Pagination->getPreviousPage();
$this->page_next = $Pagination->getNextPage();
$this->page_links = $Pagination->getPageLinks();
$tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
$inner_html_gen =& new Template($tmp_file);
$inner_html_gen->set('current_theme_path', $current_theme_path);
$inner_html_gen->set('base_url', $base_url);
$inner_html_gen->set('forum_details', $this->forum_details);
$inner_html_gen->set('parent_id', $this->parent_id);
$inner_html_gen->set('parent_name_hidden', $this->parent_name_hidden);
$inner_html_gen->set('parent_type', $this->parent_type);
$inner_html_gen->set('header_title', $this->header_title);
$inner_html_gen->set('title_form', $this->title_form);
$inner_html_gen->set('body', $this->body);
$inner_html_gen->set('msg', $this->msg);
$inner_html_gen->set('name', $this->name);
$inner_html_gen->set('email', $this->email);
$inner_html_gen->set('is_member', $this->is_member);
$inner_html_gen->set('page_prev', $this->page_prev);
$inner_html_gen->set('page_next', $this->page_next);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html_gen->set('group_access_type', $this->group_access_type);
$inner_html_gen->set('group_owner', $this->group_owner_id);
$inner_html_gen->set('ccid', $_GET['ccid']);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例5: Pagination
function generate_inner_html()
{
global $current_theme_path, $base_url;
$button_display = FALSE;
$Pagination = new Pagination();
$Pagination->setPaging($this->Paging);
$this->page_prev = $Pagination->getPreviousPage();
$this->page_next = $Pagination->getNextPage();
$this->page_links = $Pagination->getPageLinks();
if ($this->is_member || $this->is_admin) {
$button_display = TRUE;
}
$tmp_file = dirname(__FILE__) . '/center_inner_public.tpl';
$inner_html_gen =& new Template($tmp_file);
$inner_html_gen->set('current_theme_path', $current_theme_path);
$inner_html_gen->set('base_url', $base_url);
$inner_html_gen->set('forum_details', $this->forum_details);
$inner_html_gen->set('group_name', $this->group_name);
$inner_html_gen->set('topic_count', $this->topic_count);
$inner_html_gen->set('page_prev', $this->page_prev);
$inner_html_gen->set('page_next', $this->page_next);
$inner_html_gen->set('page_links', $this->page_links);
$inner_html_gen->set('button_display', $button_display);
$inner_html_gen->set('group_owner_id', $this->group_details->author_id);
$inner_html = $inner_html_gen->fetch();
return $inner_html;
}
示例6: 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;
}
示例7: 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;
}
示例8: 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();
}
示例9: 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;
}
示例10: 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;
}
示例11: 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;
}
示例12: 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;
}
示例13: 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;
}
示例14: 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;
}
示例15: 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;
}