Changeset 6176 for extensions/ColorStat/cstat_rb_callback.class.inc.php
- Timestamp:
- May 13, 2010, 10:21:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ColorStat/cstat_rb_callback.class.inc.php
r6107 r6176 15 15 if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 16 16 17 //include_once('') 17 18 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCRequestBuilder.class.inc.php'); 18 19 … … 119 120 * return HTML code for a given colors list 120 121 * 121 * ==> this is the same function than the CStat_root::htmlColorList() function122 * make a copy here only top optimize performance (don't load the123 * CStat_root file for one function)124 122 * 125 123 * @param Array $colors : list of colors … … 163 161 } 164 162 163 164 /** 165 * this function is called by the request builder to make the search page, and 166 * must return the HTML & JS code of the dialogbox used to select criterion 167 * 168 * Notes : 169 * - the dialogbox is a JS object with a public method 'show' 170 * - when the method show is called, one parameter is given by the request 171 * builder ; the parameter is an object defined as this : 172 * { 173 * cBuilder: an instance of the criteriaBuilder object used in the page, 174 * eventOK : a callback function, called when the OK button is pushed 175 * id: 176 * } 177 * 178 * 179 * 180 * 181 * @param String $mode : can take 'admin' or 'public' values, allowing to 182 * return different interface if needed 183 * @return String : HTML formatted value 184 */ 185 static public function getInterfaceContent($mode='admin') 186 { 187 return(CStat_functions::dialogBoxColor()); 188 } 189 190 /** 191 * this function returns the label displayed in the criterion menu 192 * 193 * @return String : label displayed in the criterions menu 194 */ 195 static public function getInterfaceLabel() 196 { 197 return(l10n('cstat_add_colors')); 198 } 199 200 /** 201 * this function returns the name of the dialog box class 202 * 203 * @return String : name of the dialogbox class 204 */ 205 static public function getInterfaceDBClass() 206 { 207 return('dialogChooseColorBox'); 208 } 209 165 210 } 166 211
Note: See TracChangeset
for help on using the changeset viewer.