1 <?xml version="1.0" encoding="UTF-8" ?>
3 This template provides meta data for editing forced ads.
5 @author Roland Haeder <webmaster@mxchange.org>
7 @copyright (c) 2003 - 2009 by Roland Haeder
8 @copyright (c) 2009 - 2012 by Mailer Developer Team
9 @license GNU GPL 2.0 or any newer version
10 @link http://mxchange.org
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
27 <admin-entry-meta-data>
29 Call-back function which should all following parameter handled over
30 to. This will always be type of string but we like homogene XMLs.
32 <callback-function type="string" value="adminEditEntriesConfirm" />
34 Name of the database table where the entries should be read/write from/to.
36 <database-table name="" type="string" value="forced_ads" />
38 The following three lists must have the same count of list entries, else an
42 And all column names to read/write, leave this list tag empty for all (*).
44 <database-column-list>
46 A column name list entry. The type is always string, or do you have
47 numerical column names?
49 <database-column-list-entry name="" type="string" table="" value="forced_ads_id" alias="" function="" />
50 <database-column-list-entry name="member_list" type="string" table="" value="forced_ads_userid" alias="" function="" />
51 <database-column-list-entry name="added_list" type="string" table="" value="forced_ads_added" alias="forced_ads_added" function="UNIX_TIMESTAMP" />
52 <database-column-list-entry name="" type="string" table="" value="forced_ads_ad_url" alias="" function="" />
53 <database-column-list-entry name="" type="string" table="" value="forced_ads_click_url" alias="" function="" />
54 <database-column-list-entry name="" type="string" table="" value="forced_ads_width" alias="" function="" />
55 <database-column-list-entry name="" type="string" table="" value="forced_ads_height" alias="" function="" />
56 <database-column-list-entry name="" type="string" table="" value="forced_ads_alt_text" alias="" function="" />
57 <database-column-list-entry name="" type="string" table="" value="forced_ads_framebreaker" alias="" function="" />
58 <database-column-list-entry name="" type="string" table="" value="forced_ads_type" alias="" function="" />
59 <database-column-list-entry name="" type="string" table="" value="forced_ads_views_counter" alias="" function="" />
60 <database-column-list-entry name="" type="string" table="" value="forced_ads_clicks_counter" alias="" function="" />
61 </database-column-list>
63 "Filter" call-back functions to call back for piping the fetched data
64 through (can be left empty, no call-back function will be called)
66 <callback-function-list>
68 A call-back function list entry
70 <callback-function-list-entry name="" type="string" value="bigintval" />
71 <callback-function-list-entry name="member_list" type="string" value="addMemberSelectionBox" />
72 <callback-function-list-entry name="added_list" type="string" value="generateDateTime" />
73 </callback-function-list>
75 Extra parameters (2nd, 3rd, ...) for above call-back functions. If an array
76 is provided, we have more than two parameters to handle over to the
77 call-back function. See function handleExtraValues() for details.
79 <extra-parameter-list>
81 A one-dimensional array with some entries
83 <extra-parameter-list-entry name="" type="array" value="member">
87 <extra-parameter-member-list>
89 A bool entry in the 'member' array, all other types are added in a
92 <extra-parameter-member-list-entry name="" type="bool" value="false" />
93 <extra-parameter-member-list-entry name="" type="bool" value="true" />
94 <extra-parameter-member-list-entry name="" type="bool" value="true" />
96 The brackets [] are required for addMemberSelectionBox(),
97 please read there for details.
99 <extra-parameter-member-list-entry name="" type="string" value="forced_ads_userid[]" />
100 </extra-parameter-member-list>
101 </extra-parameter-list-entry>
103 A one-dimensional array with some entries
105 <extra-parameter-list-entry name="" type="array" value="added">
109 <extra-parameter-added-list>
111 A bool entry in the 'added' array, all other types are added in a
114 <extra-parameter-added-list-entry name="" type="int" value="2" />
115 </extra-parameter-added-list>
116 </extra-parameter-list-entry>
117 </extra-parameter-list>
119 Columns for converting single time selections into a timestamp
124 Wether to 'edit/delete/change' (change) the entries (true) or just read them for displaying (false)
126 <enable-modify-entries name="" type="bool" value="false" />
128 The table column which should be taken for the ids (see first parameter).
129 This' type can again only be 'string' (remember why?).
131 <table-id-column name="" type="string" value="forced_ads_id" />
133 The table column which should be taken for user ids
134 This' type can again only be 'string' (remember why?).
136 <table-userid-column name="" type="string" value="forced_ads_userid" />
138 Raw userid column ($key) to skip which is always an invalid (?) entry
139 This' type can again only be 'string' (remember why?).
141 <raw-userid-column-key name="" type="string" value="forced_ads_userid" />
142 </admin-entry-meta-data>