Alive Fields
1.01
|
Public Member Functions | |
__construct ($field, $table, $id, $join_table, $join_to_right_field, $join_from_right_field, $loadable, $savable) | |
do_insert_validations ($prev_value_assoc_array) | |
do_js_includes_for_this_control () | |
do_multi_validations (&$prev_value, $key_val) | |
get_field_type_for_javascript () | |
request_handler ($request) | |
Data Fields | |
$mode | |
$join_table | |
$join_to_right_field | |
$join_from_right_field |
Used for lists that represent join tables and thus pull from a join table on the backend but look like plain old (multi-select) lists on the front end
This is used more many-to-many relationships and allows both read and write (inserting and deleting records from the join table).
__construct | ( | $ | field, |
$ | table, | ||
$ | id, | ||
$ | join_table, | ||
$ | join_to_right_field, | ||
$ | join_from_right_field, | ||
$ | loadable, | ||
$ | savable | ||
) |
do_insert_validations | ( | $ | prev_value_assoc_array | ) |
Serves to let the programmer easily restrict which values can be added to a AcListJoin (because it's a many to many, values are INSERTS)
array | $prev_value_assoc_array |
{ This function includes all the necessary javascript files for the javascript widget in the view that that connects with this controller.}
Reimplemented from AcList.
do_multi_validations | ( | &$ | prev_value, |
$ | key_val | ||
) |
Validations
type | $prev_value | |
type | $key_val |
Reimplemented from AcField.
request_handler | ( | $ | request | ) |
This is where the controller actually handles an ajax request.
The method is so complicated that it has been moved to another file (ajax_list.php)
Reimplemented from AcList.