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

Public Member Functions

 ArticleGalleyForm ($articleId, $galleyId=null)
 
 deleteImage ($imageId)
 
 display ()
 
 execute ($fileName=null, $createRemote=false)
 
 initData ()
 
 readInputData ()
 
 uploadImage ()
 
 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)
 

Additional Inherited Members

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

Detailed Description

Article galley editing form.

See Also
ArticleGalley

Definition at line 23 of file ArticleGalleyForm.inc.php.

Member Function Documentation

ArticleGalleyForm::ArticleGalleyForm (   $articleId,
  $galleyId = null 
)

Constructor.

Parameters
$articleIdint
$galleyIdint (optional)

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

References Form\addCheck(), DAORegistry\getDAO(), and Request\getJournal().

ArticleGalleyForm::deleteImage (   $imageId)

Delete an image from an HTML galley.

Parameters
$imageIdint the file ID of the image

Definition at line 328 of file ArticleGalleyForm.inc.php.

References DAORegistry\getDAO().

ArticleGalleyForm::display ( )

Display the form.

Definition at line 61 of file ArticleGalleyForm.inc.php.

References Request\getJournal(), and PluginRegistry\loadCategory().

ArticleGalleyForm::execute (   $fileName = null,
  $createRemote = false 
)

Save changes to the galley.

Returns
int the galley ID

Definition at line 149 of file ArticleGalleyForm.inc.php.

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

ArticleGalleyForm::initData ( )

Initialize form data from current galley (if applicable).

Definition at line 105 of file ArticleGalleyForm.inc.php.

ArticleGalleyForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 128 of file ArticleGalleyForm.inc.php.

References Form\readUserVars().

ArticleGalleyForm::uploadImage ( )

Upload an image to an HTML galley.

Parameters
$imageNamestring file input key

Definition at line 299 of file ArticleGalleyForm.inc.php.

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

ArticleGalleyForm::validate ( )

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