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


PHP Country::CountAll方法代码示例

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


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

示例1: dtgCountry_Bind

 protected function dtgCountry_Bind()
 {
     // Because we want to enable pagination AND sorting, we need to setup the $objClauses array to send to LoadAll()
     // Remember!  We need to first set the TotalItemCount, which will affect the calcuation of LimitClause below
     $this->dtgCountry->TotalItemCount = Country::CountAll();
     // Setup the $objClauses Array
     $objClauses = array();
     // If a column is selected to be sorted, and if that column has a OrderByClause set on it, then let's add
     // the OrderByClause to the $objClauses array
     if ($objClause = $this->dtgCountry->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     // Add the LimitClause information, as well
     if ($objClause = $this->dtgCountry->LimitClause) {
         array_push($objClauses, $objClause);
     }
     // Set the DataSource to be the array of all Country objects, given the clauses above
     $this->dtgCountry->DataSource = Country::LoadAll($objClauses);
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:19,代码来源:CountryListFormBase.class.php

示例2: dtgCountry_Bind

 public function dtgCountry_Bind()
 {
     // Get Total Count b/c of Pagination
     $this->dtgCountry->TotalItemCount = Country::CountAll();
     $objClauses = array();
     if ($objClause = $this->dtgCountry->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     if ($objClause = $this->dtgCountry->LimitClause) {
         array_push($objClauses, $objClause);
     }
     $this->dtgCountry->DataSource = Country::LoadAll($objClauses);
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:13,代码来源:CountryListPanelBase.class.php

示例3: MetaDataBinder

 /**
  * Default / simple DataBinder for this Meta DataGrid.  This can easily be overridden
  * by calling SetDataBinder() on this DataGrid with another DataBinder of your choice.
  *
  * If a paginator is set on this DataBinder, it will use it.  If not, then no pagination will be used.
  * It will also perform any sorting (if applicable).
  */
 public function MetaDataBinder()
 {
     // Remember!  We need to first set the TotalItemCount, which will affect the calcuation of LimitClause below
     if ($this->Paginator) {
         $this->TotalItemCount = Country::CountAll();
     }
     // Setup the $objClauses Array
     $objClauses = array();
     // If a column is selected to be sorted, and if that column has a OrderByClause set on it, then let's add
     // the OrderByClause to the $objClauses array
     if ($objClause = $this->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     // Add the LimitClause information, as well
     if ($objClause = $this->LimitClause) {
         array_push($objClauses, $objClause);
     }
     // Set the DataSource to be a Query result from Country, given the clauses above
     $this->DataSource = Country::LoadAll($objClauses);
 }
开发者ID:klucznik,项目名称:qcodo-website,代码行数:27,代码来源:CountryDataGridGen.class.php

示例4: define

define('GENERATE_PEOPLE', 200);
define('GENERATE_QPM', 150);
define('GENERATE_SHOWCASE', 50);
define('GENERATE_WIKI', 250);
define('GENERATE_ISSUES', 100);
define('GENERATE_FORUM_TOPICS', 100);
define('GENERATE_MESSAGES_PER_TOPIC_UBOUND', 50);
define('GENERATE_MESSAGES_PER_ISSUE_UBOUND', 25);
define('GENERATE_MESSAGES_PER_WIKI_UBOUND', 25);
define('GENERATE_MESSAGES_PER_PACKAGE_UBOUND', 25);
// Example optional IssueFieldOption values for optional IssueFields loaded from data.sql
$strOperatingSystemArray = array('CentOS 4', 'CentOS 5', 'CentOS 5.1', 'CentOS 5.2', 'CentOS 5.3', 'Mac OS X 10.4', 'Mac OS X 10.5', 'Mac OS X 10.6', 'RHEL 4', 'RHEL 5', 'RHEL 5.1', 'RHEL 5.2', 'RHEL 5.3', 'Windows 2000', 'Windows XP / 2003', ' Windows Vista', 'Windows 7', 'Ubuntu 7.04', 'Ubuntu 7.10', 'Ubuntu 8.04', 'Ubuntu 8.10', 'Ubuntu 9.04', 'Ubuntu 9.10');
$strBrowserArray = array('Chrome 1', 'Chrome 2', 'Chrome 3', 'Firefox 2', 'Firefox 3', 'Firefox 3.5', 'Microsoft IE 6', 'Microsoft IE 7', 'Microsoft IE 8', 'Safari 2', 'Safari 3', 'Safari 4');
$strServerArray = array('Apache 1.x', 'Apache 2.x', 'IIS 4', 'IIS 5', 'IIS 5.1', 'IIS 6', 'IIS 7', 'IIS 7.5');
$strDatabaseArray = array('MySQL 4.x', 'MySQL 5.0', 'MySQL 5.1', 'MySQL 6.0', 'PostgreSQL 8.x', 'SQL Server 2000', 'SQL Server 2005', 'SQL Server 2008', 'SQLite 3.x');
$intMaxCountryId = Country::CountAll();
$intMaxTimeZoneId = Timezone::CountAll();
$intMinForumId = Forum::QuerySingle(QQ::All(), QQ::OrderBy(QQN::Forum()->Id))->Id;
$intMaxForumId = Forum::QuerySingle(QQ::All(), QQ::OrderBy(QQN::Forum()->Id, false))->Id;
$dttStartDate = new QDateTime('2005-01-01 00:00:00');
// Wiki Files Repository Directory
if (is_dir(__DATA_ASSETS__)) {
    print exec('rm -r -f ' . __DATA_ASSETS__);
}
clearstatcache();
QApplication::MakeDirectory(__DATA_ASSETS__, 0777);
// Image Cached Directory
if (is_dir(__DOCROOT__ . __IMAGES_CACHED__)) {
    print exec('rm -r -f ' . __DOCROOT__ . __IMAGES_CACHED__);
}
clearstatcache();
开发者ID:qcodo,项目名称:qcodo-website,代码行数:31,代码来源:data-loader.cli.php


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