Procedural File: _form.funcs.php
Source Location: /blogs/inc/_core/ui/forms/_form.funcs.php
Page Details
This file implements Fast Form handling functions.
This file is part of the evoCore framework - http://evocore.net/ See also http://sourceforge.net/projects/evocms/.
| Author: | blueyed: Daniel HAHLER. |
| Author: | fplanque: Francois PLANQUE. |
| Version: | $Id: _form.funcs.php,v 1.7 2010/02/08 17:52:01 efy-yury Exp $ |
| Copyright: | (c)2003-2010 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - http://thequod.de/contact. |
| Deprecated: | All those functions should be handled by the Form class. |
| Filesource: | Source Code for this file |
Functions
form_checkbox [line 186]
|
form_checkbox(-)
Parameters:| string | $field_name: | the name of the checkbox |
| boolean | $field_value: | initial value |
| string | $field_label: | label |
| string | $field_note: | note |
| string | $field_class: | CSS class |
| boolean | $output: | to output (default) or not |
API Tags:
| Return: | true (if output) or the generated HTML if not outputting waltercruz > still used by mtimport |
| Deprecated: | Deprecated by (@link Form::checkbox()) |
[ Top ]
form_formstart [line 241]
|
Builds a form header and puts GET params of $action into hidden form inputs
Parameters:| $action: | ||
| $class: | ||
| $name: | ||
| $method: | ||
| $id: |
API Tags:
| Deprecated: | Deprecated by (@link Form::begin_form()) waltercruz> still used by inc/widgets/widgets/_coll_search_form.widget.php |
[ Top ]
form_info [line 222]
|
form_info(-)
Parameters:| $field_label: | ||
| $field_info: | ||
| $field_note: |
API Tags:
| Deprecated: | Deprecated by (@link Form::info_field()) |
[ Top ]
form_select [line 109]
|
Display a select field and populate it with a callback function.
Parameters:| string | $field_name: | field name |
| string | $field_value: | default field value |
| callback | $field_list_callback: | callback function |
| string | $field_label: | field label to be display before the field |
| string | $field_note: | note to be displayed after the field |
| string | $field_class: | CSS class for select waltercruz> still used by mtimport |
API Tags:
| Deprecated: | Deprecated by Form::select_input() |
[ Top ]
form_select_object [line 149]
|
Display a select field and populate it with a cache object.
Parameters:| string | $field_name: | field name |
| string | $field_value: | default field value |
| DataObjectCache | &$field_object: | Cache containing values for list (get_option_list() gets called on it) |
| string | $field_label: | field label to be display before the field |
| string | $field_note: | note to be displayed after the field |
| boolean | $allow_none: | allow to select [none] in list |
| string | $field_class: | CSS class for select waltercruz> still used by mtimport |
API Tags:
| Deprecated: | Deprecated by (@link Form::select_object()) |
[ Top ]
form_text [line 55]
|
Builds a text (or password) input field.
Parameters:| string | $field_name: | the name of the input field |
| string | $field_value: | initial value |
| integer | $field_size: | size of the input field |
| string | $field_label: | label displayed in front of the field |
| string | $field_note: | note displayed with field |
| integer | $field_maxlength: | max length of the value (if 0 field_size will be used!) |
| string | $field_class: | the CSS class to use |
| string | $inputtype: | input type (only 'text' or 'password' makes sense) |
| boolean | $output: | display (default) or return |
API Tags:
| Return: | true (if output) or the generated HTML if not outputting |
| Deprecated: | Deprecated by (@link Form::text_input()) |
[ Top ]
