Alive Fields  1.01
Public Member Functions | Data Fields
AcListJoin Class Reference
Inheritance diagram for AcListJoin:
AcList AcField

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

Detailed Description

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).

Author:
Alex Rohde

Constructor & Destructor Documentation

__construct ( field,
table,
id,
join_table,
join_to_right_field,
join_from_right_field,
loadable,
savable 
)

Constructor

Parameters:
string$fieldSame as in AcField
string$tableSame as in AcField
string$idSame as in AcField
string$join_tableTable name
string$join_to_right_fieldField name
string$join_from_right_fieldField name
CONST$loadableSame as in AcField
CONST$savableSame as in AcField

Member Function Documentation

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)

Parameters:
array$prev_value_assoc_array
Returns:
boolean

{ 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

Parameters:
type$prev_value
type$key_val
Returns:
boolean
Returns:
string

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.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables