
Public Member Functions | |
| __construct ($value='', $column='', $extra=array()) | |
| formField ($def, $form_field='Pluf_Form_Field_Varchar') | |
Public Attributes | |
| $type = '' | |
| $column = '' | |
| $value | |
| $extra = array() | |
| $methods = array() | |
| Pluf_DB_Field::__construct | ( | $ | value = '', |
|
| $ | column = '', |
|||
| $ | extra = array() | |||
| ) |
Constructor.
| mixed | Value ('') | |
| string | Column name ('') |
Reimplemented in Pluf_DB_Field_File.
| Pluf_DB_Field::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 in Pluf_DB_Field_Boolean, Pluf_DB_Field_Compressed, Pluf_DB_Field_Date, Pluf_DB_Field_Datetime, Pluf_DB_Field_Email, Pluf_DB_Field_File, Pluf_DB_Field_Foreignkey, Pluf_DB_Field_Manytomany, Pluf_DB_Field_Password, Pluf_DB_Field_Sequence, Pluf_DB_Field_Serialized, and Pluf_DB_Field_Text.
| Pluf_DB_Field::$type = '' |
The types are defined in the $mappings member variable of the schema class of your database engine, for example Pluf_DB_Schema_MySQL.
Reimplemented in Pluf_DB_Field_Boolean, Pluf_DB_Field_Compressed, Pluf_DB_Field_Date, Pluf_DB_Field_Datetime, Pluf_DB_Field_Email, Pluf_DB_Field_File, Pluf_DB_Field_Float, Pluf_DB_Field_Foreignkey, Pluf_DB_Field_Integer, Pluf_DB_Field_Manytomany, Pluf_DB_Field_Password, Pluf_DB_Field_Sequence, Pluf_DB_Field_Serialized, Pluf_DB_Field_Text, and Pluf_DB_Field_Varchar.
| Pluf_DB_Field::$column = '' |
The column name of the field.
Reimplemented in Pluf_DB_Field_File.
| Pluf_DB_Field::$value |
Current value of the field.
Reimplemented in Pluf_DB_Field_File.
| Pluf_DB_Field::$extra = array() |
All the extra parameters of the field.
Reimplemented in Pluf_DB_Field_Email, and Pluf_DB_Field_File.
| Pluf_DB_Field::$methods = array() |
The extra methods added to the model by the field.
Reimplemented in Pluf_DB_Field_File.