PhpLabWare version 0.3 |
skeleton file for plugin codes
129 lines [source]
Not referenced by any other file
Defines the following functions:
plugin_check_data($db,&$field_values,$table_desc,$modify=false) X-Ref |
Change/calculate/check values just before they are added/modified $fieldvalues is an array with the column names as key. Any changes you make in the values of $fieldvalues will result in changes in the database. You could, for instance, calculate a value of a field based on other fields |
plugin_show($db,$tableinfo,$id,$USER,$system_settings,$backbutton=true) X-Ref |
Overrides the standard 'show record'function |
plugin_search($query,$fieldvalues,$existing_clause) X-Ref |
Extends the search query $query is the complete query that you can change and must return $fieldvalues is an array with the column names as key. if there is an $existing_clause (boolean) you should prepend your additions with ' AND' or ' OR', otherwise you should not |
plugin_getvalues($db,&$allfields,$id,$tableid) X-Ref |
Extends function getvalues $allfields is a 2-D array containing the field names of the table in the first dimension and name,columnid,label,datatype,display_table,display_record,ass_t,ass_column, ass_local_key,required,modifiable,text,values in the 2nd D |
plugin_display_add($db,$tableid,$nowfield) X-Ref |
Extends function display_add This lets you add information to every specific item |
Generated: Sun Oct 5 21:17:35 2003 | Generated by PHPXref 0.2 |