本文整理匯總了PHP中testcase::get_last_active_version方法的典型用法代碼示例。如果您正苦於以下問題:PHP testcase::get_last_active_version方法的具體用法?PHP testcase::get_last_active_version怎麽用?PHP testcase::get_last_active_version使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testcase
的用法示例。
在下文中一共展示了testcase::get_last_active_version方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dBug
$va = $tcase_mgr->getInternalID($EID);
new dBug($va);
} catch (Exception $e) {
echo 'Message: ' . $e->getMessage();
}
try {
$EID = 1;
echo '<br>Testing getInternalID with ONLY NUMERIC EID<br>';
$va = $tcase_mgr->getInternalID($EID, array('tproject_id' => 282));
new dBug($va);
} catch (Exception $e) {
echo 'Message: ' . $e->getMessage();
}
die;
$items = array(1628, 1626, 1616, 392, 531);
$va = $tcase_mgr->get_last_active_version($items);
new dBug($va);
$va = $tcase_mgr->get_last_active_version($items[0]);
new dBug($va);
$options = array('access_key' => 'id', 'max_field' => 'version');
$va = $tcase_mgr->get_last_active_version($items, $options);
new dBug($options);
new dBug($items);
new dBug($va);
die;
// SELECT MAX(version) AS version, NH_TCVERSION.parent_id AS id FROM tcversions TCV
// JOIN nodes_hierarchy NH_TCVERSION ON NH_TCVERSION.id = TCV.id AND TCV.active=1
// AND NH_TCVERSION.parent_id IN () GROUP BY NH_TCVERSION.parent_id ORDER BY NH_TCVERSION.parent_id , -1) called at [C:\usr\local\xampp-1.7.2\xampp\htdocs\head-20100315\lib\functions\database.class.php:593]
// #1 database->fetchRowsIntoMap(/* Class:testcase - Method: get_last_active_version
// $old_article = file_get_contents('./old_article.txt');
// $new_article = $_REQUEST['article']; /* Let's say that someone pasted a new article to html form */