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

Public Member Functions

 EditLibraryFileForm ($contextId, $fileId, $submissionId)
 
 EditLibraryFileForm ($contextId, $fileId)
 
 execute ()
 
 execute ()
 
 getSubmissionId ()
 
 initData ()
 
 initData ()
 
- Public Member Functions inherited from LibraryFileForm
 fetch ($request)
 
 LibraryFileForm ($template, $contextId)
 
 readInputData ()
 
- 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

 $contextId
 
 $libraryFile
 
 $submissionId
 
- Public Attributes inherited from LibraryFileForm
 $contextId
 
 $libraryFileManager
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for editing a library file.

Definition at line 18 of file files/submissionDocuments/form/EditLibraryFileForm.inc.php.

Member Function Documentation

EditLibraryFileForm::EditLibraryFileForm (   $contextId,
  $fileId,
  $submissionId 
)

Constructor.

Parameters
$contextIdint
$fileTypeint LIBRARY_FILE_TYPE_...
$fileIdint optional

Definition at line 31 of file files/submissionDocuments/form/EditLibraryFileForm.inc.php.

References $contextId, $submissionId, DAORegistry\getDAO(), and getSubmissionId().

EditLibraryFileForm::EditLibraryFileForm (   $contextId,
  $fileId 
)

Constructor.

Parameters
$contextIdint
$fileTypeint LIBRARY_FILE_TYPE_...
$fileIdint optional

Definition at line 31 of file settings/library/form/EditLibraryFileForm.inc.php.

References $contextId, and DAORegistry\getDAO().

EditLibraryFileForm::execute ( )

Save name for library file

Definition at line 54 of file settings/library/form/EditLibraryFileForm.inc.php.

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

EditLibraryFileForm::execute ( )

Save name for library file

Definition at line 57 of file files/submissionDocuments/form/EditLibraryFileForm.inc.php.

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

EditLibraryFileForm::getSubmissionId ( )

return the submission ID for this library file.

Returns
int

Definition at line 69 of file files/submissionDocuments/form/EditLibraryFileForm.inc.php.

References $submissionId.

Referenced by EditLibraryFileForm().

EditLibraryFileForm::initData ( )

Initialize form data from current settings.

Definition at line 44 of file settings/library/form/EditLibraryFileForm.inc.php.

EditLibraryFileForm::initData ( )

Initialize form data from current settings.

Definition at line 46 of file files/submissionDocuments/form/EditLibraryFileForm.inc.php.

Member Data Documentation

EditLibraryFileForm::$contextId

the id of the context this library file is attached to

Definition at line 23 of file settings/library/form/EditLibraryFileForm.inc.php.

Referenced by EditLibraryFileForm().

EditLibraryFileForm::$libraryFile

the file being edited, or null for new

Definition at line 20 of file files/submissionDocuments/form/EditLibraryFileForm.inc.php.

EditLibraryFileForm::$submissionId

the id of the submission for this library file

Definition at line 23 of file files/submissionDocuments/form/EditLibraryFileForm.inc.php.

Referenced by EditLibraryFileForm(), and getSubmissionId().


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