| [ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the ResultSel class. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.
| Author: | fplanque: Francois PLANQUE |
| Author: | fsaya: Fabrice SAYA-GASNIER / PROGIDISTRI |
| Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
| Version: | $Id: _resultsel.class.php,v 1.1 2007/06/25 10:59:06 fplanque Exp $ |
| Poids: | 607 lignes (20 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
ResultSel:: (10 méthodes):
ResultSel()
display_list_start()
display_list_end()
display_functions()
selection_menu()
cols_check()
selection_checkbox()
selection_select_tag()
handle_selection_actions()
selection_action()
| ResultSel( $field_ID, $table_selections, $field_sel_ID, $field_sel_name, $table_objsel, $field_selected, $field_selection, $current_selection_ID, $sql, $count_sql = NULL, $param_prefix = '', $default_order = '', $limit = 20 ) X-Ref |
| Constructor param: string fieldname of item ID to select on param: string param: string param: string param: string param: string param: string param: integer current selection ID param: string SQL query param: NULL|string SQL query used to count the total # of rows (if NULL, we'll try to COUNT(*) by ourselves) param: string prefix to differentiate page/order params when multiple Results appear one same page param: string default ordering of columns (special syntax) if not URL specified param: integer number of lines displayed on one screen |
| display_list_start() X-Ref |
| Display list/table start preceeded by <form> opening. |
| display_list_end() X-Ref |
| Display list/table end followed by </form> closing. Typically outputs </ul> or </table> |
| display_functions() X-Ref |
| Display functions |
| selection_menu() X-Ref |
| Callback for selection menu |
| cols_check( $selection_ID, $sel_table, $sel_table_item, $sel_table_selection ) X-Ref |
| Sets the cols_check global variable to verify if checkboxes have to be checked in the result set param: the selection ID param: the name of the attachment table (which links the items and the selections param: the item id field param: the selection id field |
| selection_checkbox( $item_ID, $param_prefix ) X-Ref |
| Display a checkbox allowing to add the item to a selection Only one checkbox will be displayed for each ID. IDs which are already in the selection will be pre-checked. param: integer item ID param: string item name / prefix for form values return: string the correct input tag |
| selection_select_tag( $category_prefix, $selections_table, $selections_table_name, $selections_table_ID, $selection_ID ) X-Ref |
| Creates the select tag in the search menu and fills it with the appropriate option tags param: string the selection category prefix(the one used during the construction of the result object) param: string the name of the table containing the selections param: string the name field in the selection table param: string the id field in the selection table param: integer the current selection id |
| handle_selection_actions( $selection_ID, $prefix, $prefix_sel ) X-Ref |
| Handle selection action Determine if we need to perform an action to the current selection and do it in this case. param: integer the current selection id param: string prefix (cont_, etab_, firm_, ..) param: string selection prefix (cocs_, etes_, fifs_, ..) |
| selection_action( $action, $selection_ID, $selection_name, $prefix, $prefix_sel ) X-Ref |
| Manages the various database changes to make on selections param: string the action currently effectuated param: integer the current selection id param: string the current selection name param: string prefix (cont_, etab_, firm_, ..) param: string selection prefix (cocs_, etes_, fifs_, ..) |
| Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
|