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

Public Member Functions

 execute ()
 
 fetch ($request)
 
 getMarket ()
 
 getMonograph ()
 
 initData ()
 
 MarketForm ($monograph, $market)
 
 readInputData ()
 
 setMarket ($market)
 
 setMonograph ($monograph)
 
- 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

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

Detailed Description

Form for adding/editing a market region entry.

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

Member Function Documentation

MarketForm::execute ( )

Save the entry

See Also
Form::execute()

Definition at line 210 of file MarketForm.inc.php.

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

MarketForm::fetch (   $request)

Fetch the form.

See Also
Form::fetch()

Definition at line 106 of file MarketForm.inc.php.

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

MarketForm::getMarket ( )

Get the entry

Returns
Market

Definition at line 47 of file MarketForm.inc.php.

References $_market.

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

MarketForm::getMonograph ( )

Get the Monograph

Returns
Monograph

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

References $_monograph.

Referenced by execute(), and fetch().

MarketForm::initData ( )

Initialize form data from the market entry.

Definition at line 82 of file MarketForm.inc.php.

References getMarket().

MarketForm::MarketForm (   $monograph,
  $market 
)

Constructor.

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

References Form\addCheck(), setMarket(), and setMonograph().

MarketForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

Definition at line 184 of file MarketForm.inc.php.

References Form\readUserVars().

MarketForm::setMarket (   $market)

Set the entry

Parameters
@marketMarket

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

Referenced by MarketForm().

MarketForm::setMonograph (   $monograph)

Set the Monograph

Parameters
Monograph

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

Referenced by MarketForm().

Member Data Documentation

MarketForm::$_market

Market the entry being edited

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

Referenced by getMarket().

MarketForm::$_monograph

The monograph associated with the format being edited

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

Referenced by getMonograph().


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