Dat_keyvalues
This class is a simple container class. It specifically deals with a collection of key=>value pairs in an internal array, and provides a few high-level functions to set these and read them out. Used in combo elements for forms.
Located in /data-defs.php (line 36)
Adds a key=>value pair item into the collection.
Add query data
Add items from a query. The 'keyfield' parameter contains the name of the field to get key value from, and 'displayfields' is expected to contain a list of fields separated by the pipe "|" char. Literals are also supported by using a pseudo-fieldname in the list prefixed by a "#" char. In this case everything after the "#" will be used as the content of that field.
Return item value
Returns the value of the data item with the given key
Find ordinal array index Finds the ordinal array index of the element with key $key.
Returns status of data.
Returns true if the container has some data in it, else returns false.
Reset the data Resets the internal array to the start. This is used when you need to repeatedly traverse the data.
Documentation generated by phpDocumentor 1.3.0RC3