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

Public Member Functions

 execute ($args, $request)
 
 fetch ($request)
 
 GenreForm ($genreId=null)
 
 getGenreId ()
 
 initData ($args, $request)
 
 readInputData ()
 
 setGenreId ($genreId)
 
- 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

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

Detailed Description

Form for adding/editing a Submission File Genre.

Definition at line 18 of file GenreForm.inc.php.

Member Function Documentation

GenreForm::execute (   $args,
  $request 
)

Save email template.

Parameters
$argsarray
$requestPKPRequest

Definition at line 114 of file GenreForm.inc.php.

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

GenreForm::fetch (   $request)

Fetch

Parameters
$requestPKPRequest
See Also
Form::fetch()

Definition at line 91 of file GenreForm.inc.php.

References AppLocale\requireComponents().

GenreForm::GenreForm (   $genreId = null)

Constructor.

Definition at line 42 of file GenreForm.inc.php.

References Form\addCheck(), and setGenreId().

GenreForm::getGenreId ( )

Get the genre id

Returns
int

Definition at line 34 of file GenreForm.inc.php.

References $_genreId.

Referenced by execute(), and initData().

GenreForm::initData (   $args,
  $request 
)

Initialize form data from current settings.

Parameters
$argsarray
$requestPKPRequest

Definition at line 56 of file GenreForm.inc.php.

References DAORegistry\getDAO(), and getGenreId().

GenreForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

Definition at line 104 of file GenreForm.inc.php.

References Form\readUserVars().

GenreForm::setGenreId (   $genreId)

Set the genre id

Parameters
$genreIdint

Definition at line 26 of file GenreForm.inc.php.

Referenced by execute(), and GenreForm().

Member Data Documentation

GenreForm::$_genreId

the id for the genre being edited

Definition at line 20 of file GenreForm.inc.php.

Referenced by getGenreId().


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