[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 778 lignes (26 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier etemplate/inc/class.boetemplate.inc.php |
etemplate:: (11 méthodes):
etemplate()
exec()
process_show()
delete_event()
destroy()
button_clicked()
submit()
collect_results()
show()
draw_image()
show_cell()
etemplate($name='',$template='default',$lang='default',$group=0,$version='',$rows=2,$cols=2) X-Ref |
constructor of etemplate class, reads an eTemplate if $name is given param: as soetemplate.read |
exec($method,$content,$sel_options='',$readonlys='',$preserv='') X-Ref |
Generats a Dialog from an eTemplate - abstract the UI-layer This is the only function an application should use, all other are INTERNAL and do NOT abstract the UI-layer, because they return HTML. Generates a webpage with a form from the template and puts process_exec in the form as submit-url to call process_show for the template before it ExecuteMethod's the given $methode of the caller. param: $methode Methode (e.g. 'etemplate.editor.edit') to be called if form is submitted param: $content Array with content to fill the input-fields of template, eg. the text-field param: with name 'name' gets its content from $content['name'] param: $sel_options Array or arrays with the options for each select-field, keys are the param: field-names, eg. array('name' => array(1 => 'one',2 => 'two')) set the param: options for field 'name'. ($content['options-name'] is possible too !!!) param: $readonlys Array with field-names as keys for fields with should be readonly param: (eg. to implement ACL grants on field-level or to remove buttons not applicable) param: $preserv Array with vars which should be transported to the $method-call (eg. an id) array('id' => $id) sets $_POST['id'] for the $method-call return: nothing |
process_show(&$content,$readonlys='') X-Ref |
this is only an empty function for the GTK ui return: the adjusted content (in the simplest case that would be $content) |
delete_event() X-Ref |
Pas de description |
destroy() X-Ref |
Pas de description |
button_clicked(&$var,$form_name) X-Ref |
Pas de description |
submit() X-Ref |
Pas de description |
collect_results() X-Ref |
Pas de description |
show(&$result,$content,$sel_options='',$readonlys='',$cname='',$show_c=0,$show_row=0) X-Ref |
creates HTML from an eTemplate This is done by calling show_cell for each cell in the form. show_cell itself calls show recursivly for each included eTemplate. You can use it in the UI-layer of an app, just make shure to call process_show !!! This is intended as internal function and should NOT be called by new app's direct, as it deals with HTML and is so UI-dependent, use exec instead. param: $content array with content for the cells, keys are the names given in the cells/form elements param: $sel_options array with options for the selectboxes, keys are the name of the selectbox param: $readonlys array with names of cells/form-elements to be not allowed to change param: This is to facilitate complex ACL's which denies access on field-level !!! param: $cname basename of names for form-elements, means index in $_POST param: eg. $cname='cont', element-name = 'name' returned content in $_POST['cont']['name'] param: $show_xxx row,col name/index for name expansion return: the generated HTML |
draw_image($area, $event, $pixbuf) X-Ref |
Pas de description |
show_cell($cell,$content,$sel_options,$readonlys,$cname,$show_c,$show_row,&$span,&$result) X-Ref |
generates HTML for 1 input-field / cell calls show to generate included eTemplates. Again only an INTERMAL function. param: $cell array with data of the cell: name, type, ... param: for rest see show return: the generated HTML |
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |