Commit ecf1d80ff7bbfa9f89beda04a132b0bb6a188eff

Authored by nbm
1 parent b3b0cfb6

Remove UI test.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4159 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/testKT3.php deleted
1 -<?php  
2 -require_once("../../../config/dmsDefaults.php");  
3 -require_once(KT_LIB_DIR . "/templating/templating.inc.php");  
4 -require_once(KT_LIB_DIR . "/templating/kt3template.inc.php");  
5 -  
6 -require_once(KT_LIB_DIR . "/dispatcher.inc.php");  
7 -$sectionName = "dashboard";  
8 -  
9 -  
10 -/*  
11 - * example code - tests the frontend behaviour. remember to check ajaxConditional.php  
12 - *  
13 - */  
14 -  
15 -class testKT3 extends KTStandardDispatcher {  
16 -  
17 - // Breadcrumbs base - added to in methods  
18 - var $aBreadcrumbs = array(  
19 - array('action' => 'dashboard', 'name' => 'Test the New UI'),  
20 - array('action' => 'test', 'name' => 'Test the New UI'),  
21 - array('action' => 'test', 'name' => 'UI2'),  
22 - );  
23 -  
24 - function do_main() {  
25 - return 'hello world';  
26 - }  
27 -  
28 - function handleOutput($data) {  
29 - global $main;  
30 - $main->setBreadcrumbs($this->aBreadcrumbs);  
31 - $main->setBreadcrumbDetails("i, for one, welcome our smarty overlords.");  
32 - $main->setPageContents($data);  
33 - $main->render();  
34 - }  
35 -  
36 - function getMasterFieldInfo($oFieldSet) {  
37 - global $default;  
38 - $masterField = $oFieldSet->getMasterField();  
39 - $sQuery = "SELECT md_cond.document_field_id AS document_field_id, md_cond.metadata_lookup_id AS val, md_lookup.name AS name FROM $default->md_condition_table AS md_cond LEFT JOIN $default->md_condition_chain_table AS md_chain ON (md_cond.id = md_chain.child_condition) LEFT JOIN $default->metadata_table AS md_lookup ON (md_cond.metadata_lookup_id = md_lookup.id) WHERE md_cond.document_field_id = ? ";  
40 - return DBUtil::getResultArray(array($sQuery, array($masterField)));  
41 - }  
42 -  
43 -}  
44 -  
45 -$oDispatcher = new testKT3();  
46 -$oDispatcher->dispatch();  
47 -  
48 -?>