Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
CategoryForm Class Reference
Inheritance diagram for CategoryForm:
Form

Public Member Functions

 CategoryForm ($pressId, $categoryId=null)
 
 execute ($request)
 
 fetch ($request)
 
 getCategoryId ()
 
 getLocaleFieldNames ()
 
 getPressId ()
 
 initData ()
 
 readInputData ()
 
 validate ()
 
- 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)
 

Public Attributes

 $_categoryId
 
 $_imageExtension
 
 $_pressId
 
 $_sizeArray
 
 $_userId
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form to add/edit category.

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

Member Function Documentation

CategoryForm::CategoryForm (   $pressId,
  $categoryId = null 
)

Constructor.

Parameters
$pressIdPress id.
$categoryIdCategory id.

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

CategoryForm::execute (   $request)
CategoryForm::fetch (   $request)
See Also
Form::fetch()

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

CategoryForm::getCategoryId ( )

Get the user group id.

Returns
int categoryId

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

CategoryForm::getLocaleFieldNames ( )

Get all locale field names

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

CategoryForm::getPressId ( )

Get the press id.

Returns
int pressId

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

Referenced by execute().

CategoryForm::initData ( )
See Also
Form::initData()

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

CategoryForm::readInputData ( )
See Also
Form::readInputData()

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

CategoryForm::validate ( )
See Also
Form::validate()

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

Member Data Documentation

Id CategoryForm::$_categoryId

of the category being edited

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

$_imageExtension CategoryForm::$_imageExtension

string Cover image extension

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

Referenced by execute().

The CategoryForm::$_pressId

press of the category being edited

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

$_sizeArray CategoryForm::$_sizeArray

array Cover image information from getimagesize

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

$_userId CategoryForm::$_userId

int The current user ID

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


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