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

Public Member Functions

 _assignManagerGroup ($contextId)
 
 _loadDefaultUserGroups ($contextId)
 
 ContextSiteSettingsForm ($contextId=null)
 
 fetch ($args, $request)
 
 getLocaleFieldNames ()
 
 initData ()
 
 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
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for site administrator to edit basic context settings.

Definition at line 19 of file ContextSiteSettingsForm.inc.php.

Member Function Documentation

ContextSiteSettingsForm::_assignManagerGroup (   $contextId)

Make the site administrator the manager of the newly created context.

Parameters
$contextIdint

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

References $contextId, DAORegistry\getDAO(), and SessionManager\getManager().

Referenced by PressSiteSettingsForm\execute().

ContextSiteSettingsForm::_loadDefaultUserGroups (   $contextId)

Initially populate the user groups and assignments when creating a new context.

Parameters
$contextIdint

Definition at line 95 of file ContextSiteSettingsForm.inc.php.

References $contextId, DAORegistry\getDAO(), and AppLocale\requireComponents().

Referenced by PressSiteSettingsForm\execute().

ContextSiteSettingsForm::ContextSiteSettingsForm (   $contextId = null)

Constructor.

Parameters
$contextIdomit for a new context

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

References $contextId, Form\addCheck(), and Application\getContextDAO().

ContextSiteSettingsForm::fetch (   $args,
  $request 
)

Display the form.

Definition at line 44 of file ContextSiteSettingsForm.inc.php.

ContextSiteSettingsForm::getLocaleFieldNames ( )

Get a list of field names for which localized settings are used

Returns
array

Definition at line 87 of file ContextSiteSettingsForm.inc.php.

ContextSiteSettingsForm::initData ( )

Initialize form data from current settings.

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

References Application\getContextDAO(), and Form\setData().

ContextSiteSettingsForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 73 of file ContextSiteSettingsForm.inc.php.

References Application\getContextDAO(), Form\readUserVars(), and Form\setData().

Member Data Documentation

ContextSiteSettingsForm::$contextId

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