Technical Documentation

Show a record

 
Submit data …
ID 669
Category array
Required no
Element $ops['record_new']
Description

Record as it was posted after validation of input the way it will be saved in database

Description de

Datensatz wie er übertragen wurde, nach Prüfung der Eingaben, so wie er in der Datenbank gespeichert wurde

Example
Array
(
    [0] => Array
        (
            [documentation_id] => 669
            [type] => variable
            [required] => no
            [element] => $zz['record_new']
            [description] => Record as it was posted after validation of input the way it will be saved in database
            [description_de] => Datensatz wie er übertragen wurde, nach Prüfung der Eingaben, so wie er in der Datenbank gespeichert wurde
            [todo] => 
            [example] => 
            [default_value] => 
            [mother_documentation_id] => 6
            [author_login_id] => 1
            [projects] => 
            [last_update] => 2010-07-07 13:49:45
        )

    [1] => Array
        (
            [dd_id] => 547
            [related_documentation_id] => 670
            [author_login_id] => 1
            [last_update] => 2010-07-07 13:49:45
        )

)
Default value
Mother ID $ops | [735]
Relation
Updated 26 Jun 2011 23:40:41
ID Category Req. Element Action
735 array no $ops Returned array from zzform() with information about the record and the HTML output back to the calling script

Relations: zzform()

790 boolean no $ops['critical_error'] true: better exit script with 503 Service Unavailable, false: everything ok
806 array no $ops['error_mail']

Relations: $zz_conf['int']['error']

729 array no $ops['error'] Internal variable, outputs errors if they are good for zzform_multi()
957 boolean no $ops['file_upload'] signals if there was a file upload or not, useful for extra_action
663 array no $ops['headers'] HTTP headers
823 array no $ops['meta'] Meta tags, written by zzform (if a table is made public, to avoid indexing of search results, order by-tables and edit forms)
665 string no $ops['mode'] INTERNAL: what to prepare (GET): add | edit | delete | show
784 array no $ops['not_validated']

Relations: $ops['planned']

664 string: HTML no $ops['output'] HTML output of zzform()

Relations: $zz_conf['show_output']

667 array no $ops['planned']
702 array no $ops['record_diff'] shows information after database operation about status of each field in a record: - `same`: field has not changed - `diff`: field has changed - `insert`: record was inserted (no old record) - `delete`: record was deleted (no new record)

Relations: $ops['record_new']; $ops['record_old']

669 array no $ops['record_new'] Record as it was posted after validation of input the way it will be saved in database

Relations: $ops['record_old']

670 array no $ops['record_old'] In some cases, old record will be queried, it can be found here. It does not have exactly the same fields as `record_new` but a few more, depending on SQL query for this record. The old record won't be saved in case $zz_conf['get_old_record'] is false or there's no upload field or no write_once field.

Relations: $ops['record_new']

697 string no $ops['result'] gives result of operation if at all: `successful_insert`, `successful_update`, `successful_delete`

Relations: $zz_conf['redirect']

668 array no $ops['return'] interface: for each database operation this array returns numerically indexed information about the database operation: 'table' = name of database table; 'id_field_name': field name of field with PRIMARY KEY, 'id_value': ID of record, 'action': database action, one of 'insert', 'update', 'delete'
241 string: HTML no $ops['title']

Relations: $zz['title']; OUTPUT

726 string: HTML no $zz_conf['title_separator'] Separator for output of selection, q and page in page title
936 integer no $ops['total_rows'] number of rows that match the list query
930 string no $ops['url'] correct URL of form script, invalid filters etc. removed

Relations: $zz_conf['int']['url']

Export (CSV Excel)

20 records total