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