Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($request, $assocType, $assocId, $stageId, $queryId=null) | |
execute (... $functionArgs) | |
fetch ($request, $template=null, $display=false, $actionArgs=array()) | |
getAssocId () | |
getAssocType () | |
getQuery () | |
getStageId () | |
initData () | |
readInputData () | |
setAssocId ($assocId) | |
setAssocType ($assocType) | |
setQuery ($query) | |
setStageId ($stageId) | |
![]() | |
__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) | |
fetch ($request, $template=null, $display=false) | |
getData ($key) | |
getDefaultFormLocale () | |
getErrorsArray () | |
getLocaleFieldNames () | |
getRequiredLocale () | |
getTemplate () | |
isValid () | |
readUserVars ($vars) | |
setData ($key, $value=null) | |
setDefaultFormLocale ($defaultLocale) | |
setTemplate ($template) | |
validate ($callHooks=true) | |
Data Fields | |
$_assocId | |
$_assocType | |
$_isNew | |
$_query | |
$_stageId | |
![]() | |
$_checks | |
$_data | |
$_errors | |
$_template | |
$cssValidation | |
$defaultLocale | |
$errorFields | |
$errorsArray | |
$formSectionErrors | |
$requiredLocale | |
$supportedLocales | |
Form for adding/editing a new query.
Definition at line 18 of file QueryForm.inc.php.
QueryForm::__construct | ( | $request, | |
$assocType, | |||
$assocId, | |||
$stageId, | |||
$queryId = null |
|||
) |
Constructor.
$request | Request |
$assocType | int ASSOC_TYPE_... |
$assocId | int Assoc ID (per assocType) |
$stageId | int WORKFLOW_STAGE_... |
$queryId | int Optional query ID to edit. If none provided, a (potentially temporary) query will be created. |
Definition at line 58 of file QueryForm.inc.php.
References Form\addCheck(), Core\getCurrentDate(), DAORegistry\getDAO(), setQuery(), and setStageId().
QueryForm::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 346 of file QueryForm.inc.php.
References PKPServices\get(), PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), and getQuery().
QueryForm::fetch | ( | $request, | |
$template = null , |
|||
$display = false , |
|||
$actionArgs = array() |
|||
) |
Fetch the form.
$request | PKPRequest |
$actionArgs | array Optional list of additional arguments |
Definition at line 202 of file QueryForm.inc.php.
References PKPServices\get(), DAORegistry\getDAO(), PKPTemplateManager\getManager(), getQuery(), and AppLocale\requireComponents().
QueryForm::getAssocId | ( | ) |
Get assoc id
Definition at line 160 of file QueryForm.inc.php.
References Form\getData().
QueryForm::getAssocType | ( | ) |
Get assoc type
Definition at line 144 of file QueryForm.inc.php.
References Form\getData().
QueryForm::getQuery | ( | ) |
Get the query
Definition at line 112 of file QueryForm.inc.php.
References $_query.
Referenced by execute(), fetch(), and initData().
QueryForm::getStageId | ( | ) |
QueryForm::initData | ( | ) |
Initialize form data from the associated author.
Reimplemented from Form.
Definition at line 179 of file QueryForm.inc.php.
References DAORegistry\getDAO(), and getQuery().
QueryForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 335 of file QueryForm.inc.php.
References Form\readUserVars().
QueryForm::setAssocId | ( | $assocId | ) |
Set assoc id
$assocId | int |
Definition at line 168 of file QueryForm.inc.php.
References Form\setData().
QueryForm::setAssocType | ( | $assocType | ) |
Set assoc type
$assocType | int ASSOC_TYPE_... |
Definition at line 152 of file QueryForm.inc.php.
References Form\setData().
QueryForm::setQuery | ( | $query | ) |
Set the query
Definition at line 120 of file QueryForm.inc.php.
Referenced by __construct().
QueryForm::setStageId | ( | $stageId | ) |
Set the stage id
int |
Definition at line 136 of file QueryForm.inc.php.
Referenced by __construct().
int QueryForm::$_assocId |
Assoc ID (per _assocType)
Definition at line 29 of file QueryForm.inc.php.
int QueryForm::$_assocType |
ASSOC_TYPE_...
Definition at line 23 of file QueryForm.inc.php.
boolean QueryForm::$_isNew |
True iff this is a newly-created query
Definition at line 47 of file QueryForm.inc.php.
Query QueryForm::$_query |
int QueryForm::$_stageId |
The stage id associated with the query being edited *
Definition at line 35 of file QueryForm.inc.php.
Referenced by getStageId().