[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/custom_field/ -> class.dynamic.php (summary)

(no description)

File Size: 120 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 include/db_access.php
 include/class.user.php

Defines 1 class

Dynamic_Custom_Field_Backend:: (5 methods):
  getList()
  getStructuredData()
  getControllingCustomFieldID()
  getControllingCustomFieldName()
  hideWhenNoOptions()


Class: Dynamic_Custom_Field_Backend  - X-Ref

Custom field backend to assist other backends in dynamically changing the
contents of one field or hiding/showing based on another field.

getList($fld_id)   X-Ref
No description

getStructuredData()   X-Ref
Returns a multi dimension array of data to display. The values listed
in the "keys" array are possible values for the controlling field to display
options from the "options" array.
For example, if you have a field 'name' that you want to display different
options in, depending on the contents of the 'color' field the array should
have the following structure:
array(
array(
"keys" =>   array("male", "dude"),
"options"   =>  array(
"bryan" =>  "Bryan",
"joao"  =>  "Joao",
"bob"   =>  "Bob"
)
),
array(
"keys"  =>  array("female", "chick"),
"options"   =>  array(
"freya" =>  "Freya",
"becky" =>  "Becky",
"sharon"    =>  "Sharon",
"layla"     =>  "Layla"
)
)
);

return: array An array of data to display

getControllingCustomFieldID()   X-Ref
Returns the ID of the "controlling" custom field.

return: integer The ID of the controlling custom field

getControllingCustomFieldName()   X-Ref
Returns the name of the "controlling" custom field.

return: string The name of the controlling custom field

hideWhenNoOptions()   X-Ref
Returns true if this row should be hidden if it has no value

return: boolean True if this field should be hidden before options are set



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7