Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
CategoryForm Class Reference
Inheritance diagram for CategoryForm:
Form

Public Member Functions

 CategoryForm ($category=null)
 
 display ()
 
 execute ()
 
 getLocaleFieldNames ()
 
 initData ()
 
 readInputData ()
 
- Public Member Functions inherited from Form
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 display ($request=null, $template=null)
 
 execute ($object=null)
 
 fetch (&$request, $template=null, $display=false)
 
 Form ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getFormLocale ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 initData ()
 
 isLocaleResubmit ()
 
 isValid ()
 
 readInputData ()
 
 readUserDateVars ($vars)
 
 readUserVars ($vars)
 
 setData ($key, $value)
 
 setTemplate ($template)
 
 smartyFormLanguageChooser ($params, &$smarty)
 
 validate ($callHooks=true)
 

Additional Inherited Members

- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 

Detailed Description

Form for site admins to create/edit categories.

See Also
Category

Definition at line 19 of file CategoryForm.inc.php.

Member Function Documentation

CategoryForm::CategoryForm (   $category = null)

Constructor

Parameters
groupCategory object; null to create new

Definition at line 27 of file CategoryForm.inc.php.

References Form\addCheck().

CategoryForm::display ( )

Display the form.

Definition at line 50 of file CategoryForm.inc.php.

CategoryForm::execute ( )

Save group group.

Definition at line 77 of file CategoryForm.inc.php.

References DAORegistry\getDAO(), and Form\getData().

CategoryForm::getLocaleFieldNames ( )

Get the list of localized field names for this object

Returns
array

Definition at line 41 of file CategoryForm.inc.php.

References DAORegistry\getDAO().

CategoryForm::initData ( )

Initialize form data from current group group.

Definition at line 59 of file CategoryForm.inc.php.

CategoryForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 70 of file CategoryForm.inc.php.

References Form\readUserVars().


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