Pluf_DB_Field_Compressed Class Reference

Inheritance diagram for Pluf_DB_Field_Compressed:

Pluf_DB_Field

List of all members.

Public Member Functions

 formField ($def, $form_field='Pluf_Form_Field_Varchar')

Public Attributes

 $type = 'blob'


Detailed Description

This field will automatically inflate/deflate its content.

This can be used to store large text bodies where you do not need to directly search into the content using the standard SQL functions.


Member Function Documentation

Pluf_DB_Field_Compressed::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.

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

Reimplemented from Pluf_DB_Field.


Member Data Documentation

Pluf_DB_Field_Compressed::$type = 'blob'

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.


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

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