当前位置: 首页>>代码示例>>PHP>>正文


PHP PageList::displayPaging方法代码示例

本文整理汇总了PHP中PageList::displayPaging方法的典型用法代码示例。如果您正苦于以下问题:PHP PageList::displayPaging方法的具体用法?PHP PageList::displayPaging怎么用?PHP PageList::displayPaging使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PageList的用法示例。


在下文中一共展示了PageList::displayPaging方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show

 /**
  * Gets a list of all pages of the collection type
  * specified by $ctID
  * 
  * @param int $ctID ID of collection type
  */
 public function show($ctID)
 {
     $hh = Loader::helper('html');
     $th = Loader::helper('text');
     $emptyList = false;
     $this->view(false);
     Loader::model('page_list');
     $pl = new PageList();
     $pl->filterByCollectionTypeID($ctID);
     if (array_key_exists('cvName', $_REQUEST)) {
         $cvName = $th->sanitize($_REQUEST['cvName']);
         $this->set('cvName', $cvName);
         $pl->filterByName($cvName);
         if (count($pl->getPage()) <= 0) {
             $pl = new PageList();
             $emptyList = true;
         }
     }
     if (!$emptyList) {
         $pl->addtoQuery('left join Pages parent ON(p1.cParentID = parent.cID)');
         $pl->sortByMultiple('parent.cDisplayOrder asc', 'p1.cDisplayOrder asc');
         $pages = $pl->getPage();
     } else {
         $pages = '';
         $this->set('emptyList', t('No entries found'));
     }
     $ct = CollectionType::getByID($ctID);
     // add all necessary header items like JavaScript and CSS files
     if (!array_key_exists('cvName', $_REQUEST) || $cvName == '') {
         $this->addHeaderItem($hh->css('composer.sort.css', 'remo_composer_list'));
         $this->addHeaderItem($hh->javascript('composer.sort.js', 'remo_composer_list'));
     }
     $this->addHeaderItem($hh->javascript('composer.overview.js', 'remo_composer_list'));
     // add variables used by view
     $this->set('customColumns', $this->loadCustomColumns($ctID));
     $this->set('ctID', $ctID);
     $this->set('ctPublishMethod', $ct->getCollectionTypeComposerPublishMethod());
     $this->set('pages', $pages);
     $this->set('displaySearchBox', $this->displaySearchBox());
     $this->set('composerListTitel', $ct->getCollectionTypeName());
     $this->set('pagesPagination', $pl->displayPaging(false, true));
 }
开发者ID:haeflimi,项目名称:concrete5-composer-list,代码行数:48,代码来源:list.php

示例2: t

	    <a href="<?php 
        echo $url;
        ?>
" target="<?php 
        echo $target;
        ?>
"><?php 
        echo $title;
        ?>
</a>
	</h3>
	<div class="ccm-page-list-description">
	    <?php 
        echo $description;
        ?>
	</div>

    <?php 
    }
} else {
    echo t('No pages found!');
}
echo '</div>';
// Close #ajax-article-list
// Output pagination
if ($paginate_list) {
    echo '<div id="ajax-paginator" class="pagination">';
    $pl->displayPaging();
    echo '</div>';
}
exit;
开发者ID:cewhiting,项目名称:concrete5_ajax_page_list,代码行数:31,代码来源:ajax_request.php


注:本文中的PageList::displayPaging方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。