Technical Documentation
Show a record
|
Submit data …
|
||||||
| ID | 630 | |||||
| Category | array | |||||
| Required | no | |||||
| Element | $page['head'] | |||||
| Description | ||||||
| Description de | ||||||
| Example | ||||||
| Default value | ||||||
| Mother ID | $page | [627] | |||||
| Relation |
|
|||||
| Updated | 26 Jun 2011 23:44:24 |
| ID | Category | Req. | Element | Action |
|---|---|---|---|---|
| 6 | array | yes | $zz Description of database table and fields | Show |
| 751 | array | no | $zz['conditional_fields'] | Show |
| 752 | array | no | $zz['conditional_fields'][n] | Show |
| 759 | array | no | $zz['conditional_fields'][n]['fields'] Relations: $zz['fields'][n] | Show |
| 754 | boolean | no | $zz['conditional_fields'][n]['remove_template'] | Show |
| 753 | integer | no | $zz['conditional_fields'][n]['template_field'] | Show |
| 758 | string | no | $zz['conditional_fields'][n]['max_records'] | Show |
| 756 | string | no | $zz['conditional_fields'][n]['table_name'] | Show |
| 755 | string | no | $zz['conditional_fields'][n]['title'] | Show |
| 757 | string: SQL | no | $zz['conditional_fields'][n]['sql'] | Show |
| 204 | array | no | $zz['conditions'] Numerical indexed array of conditions | Show |
| 798 | boolean | no | $zz['conditions'][n]['add']['always'] if set to true this means that the corresponding condition is always true if a record will be added | Show |
| 910 | boolean | no | $zz['conditions'][n]['add']['where'] if set to true, WHERE restrictions will be checked by this condition ($zz['conditions'][n]['where'] must be set) Relations: $zz['conditions'][n]['where'] | Show |
| 943 | integer | no | $zz['conditions'][n]['subrecord'] index of subrecord in table definition this condition can be applied to | Show |
| 203 | string | no | $zz['conditions'][n]['scope'] * record: with 'having' or 'where'; add['sql'], add['key_field_name'] * query: with 'sql' and 'key_field_name' * value: with 'sql' and 'field_name' * access: with 'function' and custom fields * upload (thought of, not yet implemented) * where: with 'field_name', triggers if a WHERE is set in the query for this field_name (shortcut in fields definition possible) * multi: if script is called via zzform_multi() * subrecord: with subrecord and where * noid: if an ID is so far not set (add before insert) * editing: checks where and POST value for a given field_name and if the adjoining query returns true, the condition is met (useful for adding/changing records, where a condition depends on a field value) | Show |
| 207 | string: field | no | $zz['conditions'][n]['add']['key_field_name'] To make clear if a condition is true or not while adding a record. Key field name; the corresponding value from $zz_conf['add'] will be used for the SQL query in 'sql'. Relations: $zz['conditions'][n]['add']['sql']; $zz_conf['add'] | Show |
| 212 | string: field | no | $zz['conditions'][n]['field_name'] | Show |
| 815 | string: function | no | $zz['conditions'][n]['function'] use function which has to return a list of allowed IDs (ID => true) | Show |
| 206 | string: SQL | no | $zz['conditions'][n]['add']['sql'] To make clear if a condition is true or not while adding a record. SQL query ending with `WHERE key_field_name = ` where value of 'key_field_name' will be added. Together with the 'where' or 'having'-condition, if this SQL query returns more than 0 lines, the condition is considered as true. If no line is returned, the condition is considered as false. Relations: $zz['conditions'][n]['add']['key_field_name']; $zz_conf['add'] | Show |
| 211 | string: SQL | no | $zz['conditions'][n]['having'] | Show |
348 records total