FF_Action_Form_Demo Class Reference

Inheritance diagram for FF_Action_Form_Demo:

FF_Action_Form FF_Action List of all members.

Public Member Functions

 renderAdditionalLinks ()
 createFormElements ()
 fillModelWithData ()
 getSingularText ()
 getPluralText ()
 getTableData ()
 getFormConstants ()
 getFormDefaults ()
 checkPerms ()

Detailed Description

Definition at line 42 of file DemoForm.php.


Member Function Documentation

FF_Action_Form_Demo::checkPerms  ) 
 

Check the permissions on this action.

public

Returns:
bool True if everything is ok, false if a new action has been set

Reimplemented from FF_Action_Form.

Definition at line 269 of file DemoForm.php.

FF_Action_Form_Demo::createFormElements  ) 
 

Creates the form elements needed for the form and any rules that apply to those elements.

public

Returns:
void

Reimplemented from FF_Action_Form.

Definition at line 69 of file DemoForm.php.

FF_Action_Form_Demo::fillModelWithData  ) 
 

Fills the model object with data for the field being edited. If an error occurs in getting the data we bounce to the problem action id.

public

Returns:
bool True if the model loaded successfully, false otherwsie

Reimplemented from FF_Action_Form.

Definition at line 90 of file DemoForm.php.

References FF_Request::getParam().

FF_Action_Form_Demo::getFormConstants  ) 
 

Gets the form constants

public

Returns:
array An array of form constants

Reimplemented from FF_Action_Form.

Definition at line 227 of file DemoForm.php.

References getFormConstants(), and FF_Request::getParam().

FF_Action_Form_Demo::getFormDefaults  ) 
 

Converts the model to the appropriate form fields. Returns an array of 'field' => 'value'

public

Returns:
array The array of fields and values

Reimplemented from FF_Action_Form.

Definition at line 250 of file DemoForm.php.

FF_Action_Form_Demo::getPluralText  ) 
 

Gets the text that describes a plural version of the items displayed.

public

Returns:
string The plural text

Reimplemented from FF_Action_Form.

Definition at line 153 of file DemoForm.php.

FF_Action_Form_Demo::getSingularText  ) 
 

Gets the text that describes a singular version of the items displayed

public

Returns:
string The singular text

Reimplemented from FF_Action_Form.

Definition at line 138 of file DemoForm.php.

FF_Action_Form_Demo::getTableData  ) 
 

Gets the headers that we make a basic table out of. Has the form of 'data' => the cell data, 'title' => the cell description, 'titleStyles'/'dataStyles' => any attributes to apply to the title and data cells respectively.

public

Returns:
array

Reimplemented from FF_Action_Form.

Definition at line 169 of file DemoForm.php.

FF_Action_Form_Demo::renderAdditionalLinks  ) 
 

Renders additional links on the page

public

Returns:
void

Reimplemented from FF_Action_Form.

Definition at line 51 of file DemoForm.php.

References FastFrame::selfURL().


The documentation for this class was generated from the following file:
Generated on Fri Jun 23 11:38:23 2006 for FastFrame by  doxygen 1.4.4