本文整理汇总了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 */