/[cvs]/nfo/php/libs/org.netfrag.app/YAA/BetsEdit.php
ViewVC logotype

Annotation of /nfo/php/libs/org.netfrag.app/YAA/BetsEdit.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sat Nov 22 18:43:21 2003 UTC (20 years, 9 months ago) by udo
Branch: MAIN
CVS Tags: HEAD
initial commit

1 udo 1.1 <?
2     /**
3     * This file contains the YAA_NewsEdit child class, it inherits
4     * from the WebExplorer_Module_AbstractNavigationList.
5     *
6     * @author Udo Loeb <udo@rotamente.com>
7     * @author Sebastian Utz <seut@rotamente.com>
8     * @package org.netfrag.app
9     * @name YAA::NewsEdit
10     *
11     */
12    
13     /**
14     * Cvs-Log:
15     *
16     * $Id: NewsEdit.php,v 1.1 2003/11/14 18:07:22 udo Exp $
17     *
18     *
19     */
20    
21     /**
22     * This requires the WebExplorer::Module::DataList
23     * component as base class.
24     *
25     */
26     loadModule('WebExplorer::Module::DataList');
27    
28     /**
29     * The YAA_NewsEdit child class inherits from a WebExplorer
30     * component to ensure querying against known api/infrastructure.
31     * This could also be decoupled later.
32     *
33     *
34     *
35     * @copyright (c) 2003 - All Rights reserved.
36     *
37     * @link http://www.gnu.org/licenses/lgpl.txt
38     * @license GNU LGPL (GNU Lesser General Public License)
39     *
40     *
41     * @author Udo Loeb <udo@rotamente.com>
42     * @author Sebastian Utz <seut@rotamente.com>
43     * @package org.netfrag.app
44     * @name YAA::NewsEdit
45     *
46     *
47     */
48    
49    
50    
51     class YAA_BetsEdit extends WebExplorer_Module_DataList {
52    
53     function set_gui_object() {
54     //print "request: " .Dumper($_REQUEST). "<br>";
55     if (is_array($_REQUEST['checkbox'])) {
56     if (count($_REQUEST['checkbox']) == 1) {
57     $myGuid = array_pop($_REQUEST['checkbox']);
58    
59     $myOptions = Array (
60     'decode' => 1,
61     'links' => Array (
62     'list' => Array (
63     '0' => Array (
64     'name' => "item",
65     'url' => "/ts/admin/pub/index.php?t=DataBrowser&ecl=content&ecdlk=rpc&ecmod=view&ect=data&ecat=item&ecdid=item&ecdf="
66     ),
67     '1' => Array (
68     'name' => "tree",
69     'url' => "/ts/admin/pub/index.php?t=DataBrowser&ecl=content&ecdlk=rpc&ecmod=view&ect=data&ecat=tree&ecdid=tree&ecdf="
70     ),
71     ),
72     'meta' => Array (
73     'selected' => "item"
74     ),
75     ),
76     );
77     //$myOptions['data_locator_meta'] = array();
78     //$data_locator_meta = array('data_locator_meta' => $this->_args['options']['data_locator_meta']);
79     $myOptions['data_locator_meta'] = $this->_args['options']['data_locator_meta'];
80     $myOptions['data_locator_meta']['ident'] = $myGuid;
81     $myOptions['data_locator_meta']['abstract_type'] = "item";
82     $myOptions['decode_args'] = $this->_args['options']['decode_args'];
83     $myOptions['parent'] = $this->_args['options']['parent'];
84     $myOptions['parent']['guid'] = $myGuid;
85     //print "myOptions: " .Dumper($myOptions). "<br>";
86     //$list = new ExpandEditDataItem("title", $myOptions);
87     if ($_REQUEST['ecdfa'] == "expand") { $list = new ExpandDataItem("title", $myOptions);}
88     elseif ($_REQUEST['ecdfa'] == "expandedit" || $_REQUEST['ecdfa'] == "edit") {$list = new ExpandEditDataItem("title", $myOptions);}
89     else {
90     $list = new GenericGUIDataList($this->_args['caption'], 600, $this->_args['orderby'], FALSE, $this->_args['options']);
91     $list->set_form_method('POST');
92     // set name of unique ident which exists for each data rowset/object
93     $unique_ident_name = "guid";
94     // enable action button for each row
95     $list->add_action_column('checkbox', 'FIRST', $unique_ident_name);
96     // enable actionbar for the action buttons
97     $list->set_actionbar();
98     }
99     } else {
100     $list = "Multiple selection!<br>";
101     }
102     } else {
103     $list = new GenericGUIDataList($this->_args['caption'], 600, $this->_args['orderby'], FALSE, $this->_args['options']);
104    
105     $list->set_form_method('POST');
106     // set name of unique ident which exists for each data rowset/object
107     $unique_ident_name = "guid";
108     // enable action button for each row
109     $list->add_action_column('checkbox', 'FIRST', $unique_ident_name);
110    
111     // enable actionbar for the action buttons
112     $list->set_actionbar();
113     }
114    
115     $this->_gui_object = &$list;
116     }
117    
118     }
119    
120    
121     ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed