|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($pressId, $spotlightId=null) | |
| _isValidSpotlightType ($type) | |
| execute (... $functionArgs) | |
| fetch ($request, $template=null, $display=false) | |
| getAssocTitle ($assocId, $assocType) | |
| getPressId () | |
| getSpotlightId () | |
| readInputData () | |
Public Member Functions inherited from Form | |
| __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 () | |
| getLocaleFieldNames () | |
| getRequiredLocale () | |
| getTemplate () | |
| initData () | |
| isValid () | |
| readUserVars ($vars) | |
| setData ($key, $value=null) | |
| setDefaultFormLocale ($defaultLocale) | |
| setTemplate ($template) | |
| validate ($callHooks=true) | |
Data Fields | |
| $_pressId | |
| $_spotlightId | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for reading/creating/editing spotlight items.
Definition at line 18 of file SpotlightForm.inc.php.
| SpotlightForm::__construct | ( | $pressId, | |
$spotlightId = null |
|||
| ) |
Constructor
| $pressId | int |
| $spotlightId | int leave as default for new spotlight |
Definition at line 40 of file SpotlightForm.inc.php.
References Form\addCheck().
| SpotlightForm::_isValidSpotlightType | ( | $type | ) |
Internal function for spotlight type verification.
| int | $type |
Definition at line 177 of file SpotlightForm.inc.php.
| SpotlightForm::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 96 of file SpotlightForm.inc.php.
References DAORegistry\getDAO(), Form\getData(), getPressId(), and getSpotlightId().
| SpotlightForm::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 63 of file SpotlightForm.inc.php.
References DAORegistry\getDAO(), PKPTemplateManager\getManager(), getPressId(), and getSpotlightId().
| SpotlightForm::getAssocTitle | ( | $assocId, | |
| $assocType | |||
| ) |
Fetch the title of the Spotlight item, based on the assocType and pressId
| int | $assocId | |
| int | $assocType |
Definition at line 153 of file SpotlightForm.inc.php.
References fatalError(), PKPServices\get(), DAORegistry\getDAO(), and getPressId().
| SpotlightForm::getPressId | ( | ) |
Fetch the press Id for this form.
Definition at line 144 of file SpotlightForm.inc.php.
References $_pressId.
Referenced by execute(), fetch(), and getAssocTitle().
| SpotlightForm::getSpotlightId | ( | ) |
Fetch the spotlight Id for this form.
Definition at line 136 of file SpotlightForm.inc.php.
References $_spotlightId.
| SpotlightForm::readInputData | ( | ) |
Reimplemented from Form.
Definition at line 89 of file SpotlightForm.inc.php.
References Form\readUserVars().
| pressId SpotlightForm::$_pressId |
Definition at line 33 of file SpotlightForm.inc.php.
Referenced by getPressId().
| spotlightId SpotlightForm::$_spotlightId |
Definition at line 25 of file SpotlightForm.inc.php.
Referenced by getSpotlightId().