
Public Member Functions | |
| formField ($def, $form_field='Pluf_Form_Field_Varchar') | |
Public Attributes | |
| $type = 'foreignkey' | |
| Pluf_DB_Field_Foreignkey::formField | ( | $ | def, | |
| $ | form_field = 'Pluf_Form_Field_Varchar' | |||
| ) |
Get the form field for this field.
We put this method at the field level as it allows us to easily create a new DB field and a new Form field and use them without the need to modify another place where the mapping would be performed.
| array | Definition of the field. | |
| string | Form field class. |
Reimplemented from Pluf_DB_Field.
| Pluf_DB_Field_Foreignkey::$type = 'foreignkey' |
The types are defined in the $mappings member variable of the schema class of your database engine, for example Pluf_DB_Schema_MySQL.
Reimplemented from Pluf_DB_Field.