1 |
<? |
<? |
2 |
/* |
/** |
3 |
## ----------------------------------------------------------------------------- |
* This file contains the WebExplorer_Module_NavigationList child class, |
4 |
## $Id$ |
* it inherits from the WebExplorer_Module_AbstractNavigationList. |
5 |
## ----------------------------------------------------------------------------- |
* |
6 |
## $Log$ |
* @author Sebastian Utz <seut@tunemedia.de> |
7 |
## Revision 1.9 2003/04/18 14:40:57 jonen |
* @package org.netfrag.app |
8 |
## bugfix |
* @name WebExplorer::Module::NavigationList |
9 |
## |
* |
10 |
## Revision 1.8 2003/04/18 13:33:44 jonen |
*/ |
|
## CHANGE: link_vars now are passed by contructor arguments |
|
|
## (so that the AbstractExplorer could handle these...) |
|
|
## |
|
|
## Revision 1.7 2003/04/16 16:13:04 joko |
|
|
## updates to 'function propagate': + minor cosmetic update, ++ special mode: 'tree' if value of node ends with '.xml' |
|
|
## |
|
|
## Revision 1.6 2003/04/08 22:40:06 joko |
|
|
## renamed / revamped shortcut to LinkBuilder (now via url::short) |
|
|
## |
|
|
## Revision 1.5 2003/04/06 04:26:43 joko |
|
|
## shortcut for LinkBuilder |
|
|
## |
|
|
## Revision 1.4 2003/04/06 01:44:52 jonen |
|
|
## + build links now with help of LinkBuilder class |
|
|
## (one id instead of a bunch of variables... ;) |
|
|
## |
|
|
## Revision 1.3 2003/04/05 21:17:16 joko |
|
|
## moved code to AbstractNavigationList.php |
|
|
## |
|
|
## |
|
|
## ----------------------------------------------------------------------------- |
|
|
*/ |
|
11 |
|
|
12 |
|
/** |
13 |
|
* Cvs-Log: |
14 |
|
* |
15 |
|
* $Id$ |
16 |
|
* |
17 |
|
* $Log$ |
18 |
|
* Revision 1.10 2003/04/18 15:12:33 joko |
19 |
|
* modified header to be phpDocumentor compliant |
20 |
|
* |
21 |
|
* Revision 1.9 2003/04/18 14:40:57 jonen |
22 |
|
* bugfix |
23 |
|
* |
24 |
|
* Revision 1.8 2003/04/18 13:33:44 jonen |
25 |
|
* CHANGE: link_vars now are passed by contructor arguments |
26 |
|
* (so that the AbstractExplorer could handle these...) |
27 |
|
* |
28 |
|
* Revision 1.7 2003/04/16 16:13:04 joko |
29 |
|
* updates to 'function propagate': + minor cosmetic update, ++ special mode: 'tree' if value of node ends with '.xml' |
30 |
|
* |
31 |
|
* Revision 1.6 2003/04/08 22:40:06 joko |
32 |
|
* renamed / revamped shortcut to LinkBuilder (now via url::short) |
33 |
|
* |
34 |
|
* Revision 1.5 2003/04/06 04:26:43 joko |
35 |
|
* shortcut for LinkBuilder |
36 |
|
* |
37 |
|
* Revision 1.4 2003/04/06 01:44:52 jonen |
38 |
|
* + build links now with help of LinkBuilder class |
39 |
|
* (one id instead of a bunch of variables... ;) |
40 |
|
* |
41 |
|
* Revision 1.3 2003/04/05 21:17:16 joko |
42 |
|
* moved code to AbstractNavigationList.php |
43 |
|
* |
44 |
|
*/ |
45 |
|
|
46 |
|
/** |
47 |
|
* This requires the WebExplorer::Module::AbstractNavigationList |
48 |
|
* component as base class. |
49 |
|
* |
50 |
|
*/ |
51 |
loadModule('WebExplorer::Module::AbstractNavigationList'); |
loadModule('WebExplorer::Module::AbstractNavigationList'); |
52 |
|
|
53 |
|
/** |
54 |
|
* The WebExplorer_Module_NavigationList child class queries the |
55 |
|
* backend for a list of known nodes at toplevel. |
56 |
|
* |
57 |
|
* It's using the DataSource::Generic chain to access the common |
58 |
|
* backend datasource query API (queryData/querySchema). |
59 |
|
* |
60 |
|
* The results - probably a simple list - are displayed inside |
61 |
|
* a VerticalCSSNavTable by using the AbstractNavigationList. |
62 |
|
* |
63 |
|
* The links contain http query arguments which should trigger |
64 |
|
* the request processor (MVC) to navigate into the selected |
65 |
|
* top-level node. |
66 |
|
* This displays a list of second level nodes inside the content area |
67 |
|
* which are most probably full blown row-based results. |
68 |
|
* (ms-lingo: recordsets) |
69 |
|
* |
70 |
|
* |
71 |
|
* @link http://www.netfrag.org/~jonen/ |
72 |
|
* @author Sebastian Utz <seut@tunemedia.de> |
73 |
|
* |
74 |
|
* @copyright (c) 2003 - All Rights reserved. |
75 |
|
* |
76 |
|
* @link http://www.gnu.org/licenses/lgpl.txt |
77 |
|
* @license GNU LGPL (GNU Lesser General Public License) |
78 |
|
* |
79 |
|
* |
80 |
|
* @package org.netfrag.app |
81 |
|
* @subpackage WebExplorer |
82 |
|
* @name WebExplorer::Module::NavigationList |
83 |
|
* |
84 |
|
* |
85 |
|
*/ |
86 |
class WebExplorer_Module_NavigationList extends WebExplorer_Module_AbstractNavigationList { |
class WebExplorer_Module_NavigationList extends WebExplorer_Module_AbstractNavigationList { |
87 |
|
|
88 |
function propagate() { |
function propagate() { |
89 |
|
|
90 |
// default link arguments to branch to a list |
// V1 - manually defined default link arguments to branch to a list |
91 |
//$link_vars = array( |
//$link_vars = array( |
92 |
// 'ap' => "explorer", |
// 'ap' => "explorer", |
93 |
// 'ecl' => "content", |
// 'ecl' => "content", |
94 |
// 'ect' => "data", |
// 'ect' => "data", |
95 |
// 'ecdlk' => "rpc", |
// 'ecdlk' => "rpc", |
96 |
// 'ecat' => "list", |
// 'ecat' => "list", |
97 |
// ); |
// ); |
98 |
|
|
99 |
$link_vars = $this->_args['hidden_elements']; |
// V2 - required link arguments to stay in flow are now automagically propagated to our arguments |
100 |
|
$link_vars = $this->_args['hidden_elements']; |
101 |
|
|
102 |
|
// V3 - TODO: enhanced version of this mechanism - make both things possible using ... |
103 |
|
// $link_vars = php::array_join_merge($link_vars_default, $link_vars_passed_in); |
104 |
|
|
105 |
foreach ($this->result as $value) { |
foreach ($this->result as $value) { |
106 |
$alt_caption = "Alle Elemente unterhalb von '$value' anzeigen."; |
$alt_caption = "Alle Elemente unterhalb von '$value' anzeigen."; |