[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/etemplate/inc/ -> class.advancedsearch_widget.inc.php (sommaire)

(pas de description)

Poids: 282 lignes (11 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

advancedsearch_widget:: (4 méthodes):
  advancedsearch_widget()
  pre_process()
  post_process()
  get_rows()


Classe: advancedsearch_widget  - X-Ref

eTemplate Extension: Advanced Search

$content[$name] = array(
'input_template'    => app.template
'search_method'        => app.class.method in so_sql style
'colums_to_present'    => array with field_name => label
'actions'        => array with actions for resultset in etemplates style
can also contain a field 'method' which gets executed with resultset as first param
'row_actions'        => array with actions for each row

advancedsearch_widget($ui='')   X-Ref
Constructor of the extension

param: string $ui '' for html

pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&$tmpl)   X-Ref
pre-processing of the extension

This function is called before the extension gets rendered

param: string $name form-name of the control
param: mixed &$value value / existing content, can be modified
param: array &$cell array with the widget, can be modified for ui-independent widgets
param: array &$readonlys names of widgets as key, to be made readonly
param: mixed &$extension_data data the extension can store persisten between pre- and post-process
param: object &$tmpl reference to the template we belong too
return: boolean true if extra label is allowed, false otherwise

post_process($name,&$value,&$extension_data,&$loop,&$tmpl,$value_in)   X-Ref
postprocessing method, called after the submission of the form

It has to copy the allowed/valid data from $value_in to $value, otherwise the widget
will return no data (if it has a preprocessing method). The framework insures that
the post-processing of all contained widget has been done before.

param: string $name form-name of the widget
param: mixed &$value the extension returns here it's input, if there's any
param: mixed &$extension_data persistent storage between calls or pre- and post-process
param: boolean &$loop can be set to true to request a re-submision of the form/dialog
param: object &$tmpl the eTemplate the widget belongs too
param: mixed &value_in the posted values (already striped of magic-quotes)
return: boolean true if $value has valid content, on false no content will be returned!

get_rows($query,&$rows,&$readonlys)   X-Ref
Pas de description



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7