本文整理汇总了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'];