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

Public Member Functions

 _isValidSpotlightType ($type)
 
 execute ($request)
 
 fetch ($request)
 
 getAssocTitle ($assocId, $assocType)
 
 getPressId ()
 
 getSpotlightId ()
 
 readInputData ()
 
 SpotlightForm ($pressId, $spotlightId=null)
 
- 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
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for reading/creating/editing spotlight items.

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

Member Function Documentation

SpotlightForm::_isValidSpotlightType (   $type)

Internal function for spotlight type verification.

Parameters
int$type
Returns
boolean

Definition at line 176 of file SpotlightForm.inc.php.

SpotlightForm::execute (   $request)
See Also
Form::execute()

Definition at line 89 of file SpotlightForm.inc.php.

References getPressId().

SpotlightForm::fetch (   $request)
See Also
Form::fetch()

Definition at line 58 of file SpotlightForm.inc.php.

References getAssocTitle().

SpotlightForm::getAssocTitle (   $assocId,
  $assocType 
)

Fetch the title of the Spotlight item, based on the assocType and pressId

Parameters
int$assocId
int$assocType

Definition at line 146 of file SpotlightForm.inc.php.

Referenced by fetch().

SpotlightForm::getPressId ( )

Fetch the press Id for this form.

Returns
int $pressId

Definition at line 137 of file SpotlightForm.inc.php.

Referenced by execute().

SpotlightForm::getSpotlightId ( )

Fetch the spotlight Id for this form.

Returns
int $spotlightId

Definition at line 129 of file SpotlightForm.inc.php.

SpotlightForm::readInputData ( )
See Also
Form::readInputData()

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

SpotlightForm::SpotlightForm (   $pressId,
  $spotlightId = null 
)

Constructor

Parameters
$pressIdint
$spotlightIdint leave as default for new spotlight

Definition at line 40 of file SpotlightForm.inc.php.


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