Pluf_DB_Field_File Class Reference

Inheritance diagram for Pluf_DB_Field_File:

Pluf_DB_Field

List of all members.

Public Member Functions

 __construct ($value='', $column='', $extra=array())
 formField ($def, $form_field='Pluf_Form_Field_File')

Public Attributes

 $type = 'file'
 $column = ''
 $value
 $extra = array()
 $methods = array()


Constructor & Destructor Documentation

Pluf_DB_Field_File::__construct ( value = '',
column = '',
extra = array() 
)

Constructor.

Parameters:
mixed Value ('')
string Column name ('')

Reimplemented from Pluf_DB_Field.


Member Function Documentation

Pluf_DB_Field_File::formField ( def,
form_field = 'Pluf_Form_Field_File' 
)

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.

Parameters:
array Definition of the field.
string Form field class.

Reimplemented from Pluf_DB_Field.


Member Data Documentation

Pluf_DB_Field_File::$type = 'file'

See definition in Pluf_DB_Field.

Reimplemented from Pluf_DB_Field.

Pluf_DB_Field_File::$column = ''

The column name of the field.

Reimplemented from Pluf_DB_Field.

Pluf_DB_Field_File::$value

Current value of the field.

Reimplemented from Pluf_DB_Field.

Pluf_DB_Field_File::$extra = array()

All the extra parameters of the field.

Reimplemented from Pluf_DB_Field.

Pluf_DB_Field_File::$methods = array()

The extra methods added to the model by the field.

Reimplemented from Pluf_DB_Field.


The documentation for this class was generated from the following file:

Generated on Wed Feb 3 15:44:51 2010 for Pluf by  doxygen