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

Public Member Functions

 execute ($request)
 
 fetch ($request)
 
 getContextId ()
 
getSocialMedia ()
 
 readInputData ()
 
 SocialMediaForm ($contextId, $socialMedia=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 social media navigation items.

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

Member Function Documentation

SocialMediaForm::execute (   $request)

Execute the form's action. (Note that it is assumed that the form has already been validated.)

Parameters
$objectobject The object edited by this form.
Returns
$object The same object, potentially changed via hook.

Definition at line 88 of file SocialMediaForm.inc.php.

SocialMediaForm::fetch (   $request)

Returns a string of the rendered form

Parameters
$requestPKPRequest
$templatestring the template to be rendered, mandatory if no template has been specified on class instantiation.
$displayboolean
Returns
string the rendered form

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

SocialMediaForm::getContextId ( )

Fetch the context Id for this form.

Returns
int $contextId

Definition at line 133 of file SocialMediaForm.inc.php.

& SocialMediaForm::getSocialMedia ( )

Fetch the SocialMedia object for this form.

Returns
SocialMedia $socialMedia

Definition at line 125 of file SocialMediaForm.inc.php.

SocialMediaForm::readInputData ( )

Assign form data to user-submitted data. Can be overridden from subclasses.

Definition at line 81 of file SocialMediaForm.inc.php.

SocialMediaForm::SocialMediaForm (   $contextId,
  $socialMedia = null 
)

Constructor

Parameters
$contextIdint
$socialMediaIdint

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


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