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

Public Member Functions

 execute ()
 
 fetch ($request)
 
 getMonograph ()
 
 getSalesRights ()
 
 initData ()
 
 readInputData ()
 
 SalesRightsForm ($monograph, $salesRights)
 
 setMonograph ($monograph)
 
 setSalesRights ($salesRights)
 
- 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

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

Detailed Description

Form for adding/editing a sales rights entry.

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

Member Function Documentation

SalesRightsForm::execute ( )

Save the entry

See Also
Form::execute()

Definition at line 178 of file SalesRightsForm.inc.php.

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

SalesRightsForm::fetch (   $request)

Fetch the form.

See Also
Form::fetch()

Definition at line 110 of file SalesRightsForm.inc.php.

References DAORegistry\getDAO(), getMonograph(), and getSalesRights().

SalesRightsForm::getMonograph ( )

Get the Monograph

Returns
Monograph

Definition at line 71 of file SalesRightsForm.inc.php.

References $_monograph.

Referenced by execute(), and fetch().

SalesRightsForm::getSalesRights ( )

Get the entry

Returns
SalesRights

Definition at line 55 of file SalesRightsForm.inc.php.

References $_salesRights.

Referenced by execute(), fetch(), and initData().

SalesRightsForm::initData ( )

Initialize form data from the sales rights entry.

Definition at line 90 of file SalesRightsForm.inc.php.

References getSalesRights().

SalesRightsForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

Definition at line 161 of file SalesRightsForm.inc.php.

References Form\readUserVars().

SalesRightsForm::SalesRightsForm (   $monograph,
  $salesRights 
)

Constructor.

Definition at line 28 of file SalesRightsForm.inc.php.

References Form\addCheck(), DAORegistry\getDAO(), setMonograph(), and setSalesRights().

SalesRightsForm::setMonograph (   $monograph)

Set the Monograph

Parameters
Monograph

Definition at line 79 of file SalesRightsForm.inc.php.

Referenced by SalesRightsForm().

SalesRightsForm::setSalesRights (   $salesRights)

Set the entry

Parameters
@salesRightsSalesRights

Definition at line 63 of file SalesRightsForm.inc.php.

Referenced by SalesRightsForm().

Member Data Documentation

SalesRightsForm::$_monograph

The monograph associated with the format being edited

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

Referenced by getMonograph().

SalesRightsForm::$_salesRights

Sales Rights the entry being edited

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

Referenced by getSalesRights().


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