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


PHP testproject::getTotalCount方法代码示例

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


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

示例1: tlog

 * This file is the first page that the user sees when they log in.
 * Most of the code in it is html but there is some logic that displays
 * based upon the login. 
 * There is also some javascript that handles the form information.
 *
 * @internal revisions
 **/
require_once '../../config.inc.php';
require_once 'common.php';
if (function_exists('memory_get_usage') && function_exists('memory_get_peak_usage')) {
    tlog("mainPage.php: Memory after common.php> Usage: " . memory_get_usage(), 'DEBUG');
}
testlinkInitPage($db);
$smarty = new TLSmarty();
$tproject_mgr = new testproject($db);
$tprojectQty = $tproject_mgr->getTotalCount();
$currentUser = $_SESSION['currentUser'];
$userID = $currentUser->dbID;
$gui = new stdClass();
$gui->grants = array();
$gui->testprojectID = isset($_REQUEST['tproject_id']) ? intval($_REQUEST['tproject_id']) : 0;
$gui->testplanID = isset($_REQUEST['tplan_id']) ? intval($_REQUEST['tplan_id']) : 0;
if ($gui->testplanID == 0) {
    $gui->testplanID = isset($_REQUEST['testplan']) ? intval($_REQUEST['testplan']) : 0;
}
$gui->tprojectOptions = new stdClass();
$gui->tprojectOptions->inventoryEnabled = 0;
$gui->tprojectOptions->requirementsEnabled = 0;
if ($gui->testprojectID > 0) {
    $dummy = $tproject_mgr->get_by_id($gui->testprojectID);
    $gui->tprojectOptions = $dummy['opt'];
开发者ID:moraesmv,项目名称:testlink-code,代码行数:31,代码来源:mainPage.php


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