Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($contextId, $categoryId=null) | |
execute (... $functionArgs) | |
fetch ($request, $template=null, $display=false) | |
getCategoryId () | |
getContextId () | |
getLocaleFieldNames () | |
initData () | |
readInputData () | |
setCategoryId ($categoryId) | |
validate ($callHooks=true) | |
![]() | |
__construct ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null) | |
_decomposeArray ($name, $value, $stack) | |
addCheck ($formValidator) | |
addError ($field, $message) | |
addErrorField ($field) | |
addSupportedFormLocale ($supportedLocale) | |
display ($request=null, $template=null) | |
getData ($key) | |
getDefaultFormLocale () | |
getErrorsArray () | |
getRequiredLocale () | |
getTemplate () | |
isValid () | |
readUserVars ($vars) | |
setData ($key, $value=null) | |
setDefaultFormLocale ($defaultLocale) | |
setTemplate ($template) | |
Data Fields | |
$_categoryId | |
$_contextId | |
$_imageExtension | |
$_sizeArray | |
$_userId | |
![]() | |
$_checks | |
$_data | |
$_errors | |
$_template | |
$cssValidation | |
$defaultLocale | |
$errorFields | |
$errorsArray | |
$formSectionErrors | |
$requiredLocale | |
$supportedLocales | |
Form to add/edit category.
Definition at line 18 of file CategoryForm.inc.php.
CategoryForm::__construct | ( | $contextId, | |
$categoryId = null |
|||
) |
Constructor.
Definition at line 55 of file CategoryForm.inc.php.
References Form\addCheck(), PKPApplication\get(), and DAORegistry\getDAO().
CategoryForm::execute | ( | $functionArgs | ) |
Execute the form's action. (Note that it is assumed that the form has already been validated.)
mixed | $functionArgs,... | Arguments from the caller to be passed to the hook consumer |
Reimplemented from Form.
Definition at line 234 of file CategoryForm.inc.php.
References $_imageExtension, PKPApplication\get(), getCategoryId(), getContextId(), Core\getCurrentDate(), DAORegistry\getDAO(), Form\getData(), and setCategoryId().
CategoryForm::fetch | ( | $request, | |
$template = null , |
|||
$display = false |
|||
) |
Returns a string of the rendered form
$request | PKPRequest |
$template | string the template to be rendered, mandatory if no template has been specified on class instantiation. |
$display | boolean |
Reimplemented from Form.
Definition at line 175 of file CategoryForm.inc.php.
References PKPServices\get(), getCategoryId(), DAORegistry\getDAO(), and PKPTemplateManager\getManager().
CategoryForm::getCategoryId | ( | ) |
Get the category id.
Definition at line 86 of file CategoryForm.inc.php.
References $_categoryId.
Referenced by execute(), fetch(), initData(), and readInputData().
CategoryForm::getContextId | ( | ) |
Get the context id.
Definition at line 102 of file CategoryForm.inc.php.
References $_contextId.
Referenced by execute(), initData(), and readInputData().
CategoryForm::getLocaleFieldNames | ( | ) |
Get all locale field names
Reimplemented from Form.
Definition at line 112 of file CategoryForm.inc.php.
References DAORegistry\getDAO().
CategoryForm::initData | ( | ) |
Reimplemented from Form.
Definition at line 120 of file CategoryForm.inc.php.
References getCategoryId(), getContextId(), DAORegistry\getDAO(), and Form\setData().
CategoryForm::readInputData | ( | ) |
Reimplemented from Form.
Definition at line 161 of file CategoryForm.inc.php.
References getCategoryId(), getContextId(), DAORegistry\getDAO(), Form\readUserVars(), and Form\setData().
CategoryForm::setCategoryId | ( | $categoryId | ) |
Set the category ID for this section.
$categoryId | int |
Definition at line 94 of file CategoryForm.inc.php.
Referenced by execute().
CategoryForm::validate | ( | $callHooks = true | ) |
Reimplemented from Form.
Definition at line 140 of file CategoryForm.inc.php.
References Form\addError(), DAORegistry\getDAO(), and Form\getData().
Id CategoryForm::$_categoryId |
of the category being edited
Definition at line 23 of file CategoryForm.inc.php.
Referenced by getCategoryId().
The CategoryForm::$_contextId |
context ID of the category being edited
Definition at line 29 of file CategoryForm.inc.php.
Referenced by getContextId().
$_imageExtension CategoryForm::$_imageExtension |
string Cover image extension
Definition at line 41 of file CategoryForm.inc.php.
Referenced by execute().
$_sizeArray CategoryForm::$_sizeArray |
array Cover image information from getimagesize
Definition at line 47 of file CategoryForm.inc.php.
$_userId CategoryForm::$_userId |
int The current user ID
Definition at line 35 of file CategoryForm.inc.php.