Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
Form Class Reference
Inheritance diagram for Form:
AbntSettingsForm ArticleGalleyForm AuthorDepositForm AuthorSubmitForm AuthorSubmitSuppFileForm AuthSourceSettingsForm BookForReviewForm BooksForReviewSettingsForm CategoryForm ChangePasswordForm CitationForm CommentForm CommentForm ContextForm CreateReviewerForm CustomBlockEditForm CustomThemeSettingsForm DataverseAuthForm DataverseSelectForm DepositPointForm DOIExportSettingsForm DOISettingsForm DuraCloudLoginForm EditCommentForm EmailTemplateForm ExternalFeedForm ExternalFeedSettingsForm FilterForm GiftIndividualSubscriptionForm GoogleAnalyticsSettingsForm GroupForm InstallForm IssueForm IssueGalleyForm JournalSetupForm JournalSiteSettingsForm LanguageSettingsForm LoginChangePasswordForm LuceneSettingsForm MetadataForm NotificationMailingListForm ObjectForReviewAssignmentForm ObjectForReviewForm ObjectsForReviewSettingsForm PaymentSettingsForm PayMethodSettingsForm PhpMyVisitesSettingsForm PiwikSettingsForm PKPNotificationSettingsForm PLNSettingsForm PLNStatusForm ProfileForm QuickSubmitForm ReferralForm ReferralPluginSettingsForm RegistrationForm ReportGeneratorForm ReviewFormElementForm ReviewFormForm ReviewFormResponseForm ReviewObjectMetadataForm ReviewObjectTypeForm SearchForm SectionForm SettingsForm SettingsForm SettingsForm SettingsForm SettingsForm SettingsForm SettingsForm StaticPagesSettingsForm StopForumSpamSettingsForm StudentThesisForm SubscriptionForm SubscriptionPolicyForm SubscriptionTypeForm SuppFileForm ThesisForm ThesisSettingsForm UpgradeForm URNSettingsForm UsageStatsSettingsForm UserIndividualSubscriptionForm UserInstitutionalSubscriptionForm UserManagementForm VersionForm XMLGalleySettingsForm

Public Member Functions

 _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

 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 

Detailed Description

Class defining basic operations for handling HTML forms.

Definition at line 46 of file Form.inc.php.

Member Function Documentation

Form::_decomposeArray (   $name,
  $value,
  $stack 
)

Convert PHP variable (literals or arrays) into HTML containing hidden input fields.

Parameters
$namestring Name of variable
$valuemixed Value of variable
$stackarray Names of array keys (for recursive calling)
Returns
string HTML hidden form elements describing the parameters.

Definition at line 481 of file Form.inc.php.

Referenced by smartyFormLanguageChooser().

Form::addCheck (   $formValidator)

Add a validation check to the form.

Parameters
$formValidatorFormValidator

Definition at line 397 of file Form.inc.php.

Referenced by AnnouncementForm\AnnouncementForm(), ArticleGalleyForm\ArticleGalleyForm(), AuthorSubmitForm\AuthorSubmitForm(), AuthorSubmitStep1Form\AuthorSubmitStep1Form(), AuthorSubmitStep3Form\AuthorSubmitStep3Form(), AuthorSubmitStep5Form\AuthorSubmitStep5Form(), AuthorSubmitSuppFileForm\AuthorSubmitSuppFileForm(), AuthSourceSettingsForm\AuthSourceSettingsForm(), BookForReviewForm\BookForReviewForm(), BooksForReviewSettingsForm\BooksForReviewSettingsForm(), CategoryForm\CategoryForm(), ChangePasswordForm\ChangePasswordForm(), CitationForm\CitationForm(), CommentForm\CommentForm(), ContextForm\ContextForm(), CreateReviewerForm\CreateReviewerForm(), CrossRefSettingsForm\CrossRefSettingsForm(), CustomBlockEditForm\CustomBlockEditForm(), DataciteSettingsForm\DataciteSettingsForm(), DataverseAuthForm\DataverseAuthForm(), DataverseSelectForm\DataverseSelectForm(), DepositPointForm\DepositPointForm(), DOIExportSettingsForm\DOIExportSettingsForm(), DOISettingsForm\DOISettingsForm(), DuraCloudLoginForm\DuraCloudLoginForm(), EditCommentForm\EditCommentForm(), EmailTemplateForm\EmailTemplateForm(), ExternalFeedForm\ExternalFeedForm(), ExternalFeedSettingsForm\ExternalFeedSettingsForm(), FilterForm\FilterForm(), GiftIndividualSubscriptionForm\GiftIndividualSubscriptionForm(), GoogleAnalyticsSettingsForm\GoogleAnalyticsSettingsForm(), GroupForm\GroupForm(), IndividualSubscriptionForm\IndividualSubscriptionForm(), InstallForm\InstallForm(), InstitutionalSubscriptionForm\InstitutionalSubscriptionForm(), IssueForm\IssueForm(), IssueGalleyForm\IssueGalleyForm(), JournalSetupForm\JournalSetupForm(), JournalSetupStep1Form\JournalSetupStep1Form(), JournalSetupStep3Form\JournalSetupStep3Form(), JournalSiteSettingsForm\JournalSiteSettingsForm(), LanguageSettingsForm\LanguageSettingsForm(), LoginChangePasswordForm\LoginChangePasswordForm(), LuceneSettingsForm\LuceneSettingsForm(), MedraSettingsForm\MedraSettingsForm(), MetadataForm\MetadataForm(), NotificationMailingListForm\NotificationMailingListForm(), ObjectForReviewAssignmentForm\ObjectForReviewAssignmentForm(), ObjectForReviewForm\ObjectForReviewForm(), ObjectsForReviewSettingsForm\ObjectsForReviewSettingsForm(), PaymentSettingsForm\PaymentSettingsForm(), PayMethodSettingsForm\PayMethodSettingsForm(), PhpMyVisitesSettingsForm\PhpMyVisitesSettingsForm(), PiwikSettingsForm\PiwikSettingsForm(), PKPNotificationSettingsForm\PKPNotificationSettingsForm(), ProfileForm\ProfileForm(), QuickSubmitForm\QuickSubmitForm(), SettingsForm\readInputData(), XMLGalleySettingsForm\readInputData(), InstitutionalSubscriptionForm\readInputData(), ThesisSettingsForm\readInputData(), ExternalFeedForm\readInputData(), AuthorSubmitStep3Form\readInputData(), SubscriptionPolicyForm\readInputData(), ObjectsForReviewSettingsForm\readInputData(), BooksForReviewSettingsForm\readInputData(), UserIndividualSubscriptionForm\readInputData(), UserInstitutionalSubscriptionForm\readInputData(), SubscriptionTypeForm\readInputData(), StudentThesisForm\readInputData(), QuickSubmitForm\readInputData(), ThesisForm\readInputData(), SubscriptionForm\readInputData(), BookForReviewForm\readInputData(), MetadataForm\readInputData(), IssueForm\readInputData(), ReferralForm\ReferralForm(), RegistrationForm\RegistrationForm(), ReportGeneratorForm\ReportGeneratorForm(), ReviewFormElementForm\ReviewFormElementForm(), ReviewFormForm\ReviewFormForm(), ReviewFormResponseForm\ReviewFormResponseForm(), ReviewObjectMetadataForm\ReviewObjectMetadataForm(), ReviewObjectTypeForm\ReviewObjectTypeForm(), SearchForm\SearchForm(), SectionForm\SectionForm(), SettingsForm\SettingsForm(), SettingsForm\settingsForm(), StaticPagesSettingsForm\StaticPagesSettingsForm(), StudentThesisForm\StudentThesisForm(), SubscriptionForm\SubscriptionForm(), SubscriptionPolicyForm\SubscriptionPolicyForm(), SubscriptionTypeForm\SubscriptionTypeForm(), SuppFileForm\SuppFileForm(), ThesisForm\ThesisForm(), ThesisSettingsForm\ThesisSettingsForm(), UpgradeForm\UpgradeForm(), URNSettingsForm\URNSettingsForm(), UsageStatsSettingsForm\UsageStatsSettingsForm(), UserIndividualSubscriptionForm\UserIndividualSubscriptionForm(), UserInstitutionalSubscriptionForm\UserInstitutionalSubscriptionForm(), UserManagementForm\UserManagementForm(), IssueForm\validate(), VersionForm\VersionForm(), and XMLGalleySettingsForm\XMLGalleySettingsForm().

Form::addError (   $field,
  $message 
)
Form::addErrorField (   $field)

Add an error field for highlighting on form

Parameters
$fieldstring the name of the field where the error occurred

Definition at line 414 of file Form.inc.php.

Referenced by IndividualSubscriptionForm\IndividualSubscriptionForm(), InstitutionalSubscriptionForm\InstitutionalSubscriptionForm(), IssueForm\validate(), ArticleGalleyForm\validate(), SuppFileForm\validate(), IssueGalleyForm\validate(), and CitationForm\validate().

Form::display (   $request = null,
  $template = null 
)

Display the form.

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

Definition at line 144 of file Form.inc.php.

References fetch().

Form::execute (   $object = null)

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 304 of file Form.inc.php.

References HookRegistry\call().

Form::fetch ( $request,
  $template = null,
  $display = false 
)

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 156 of file Form.inc.php.

References HookRegistry\call(), getErrorsArray(), getFormLocale(), and isValid().

Referenced by display().

Form::Form (   $template = null,
  $callHooks = true,
  $requiredLocale = null,
  $supportedLocales = null 
)

Constructor.

Parameters
$templatestring the path to the form template file

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

References HookRegistry\call(), AppLocale\getPrimaryLocale(), and AppLocale\getSupportedFormLocales().

Form::getData (   $key)

Get the value of a form field.

Parameters
$keystring
Returns
mixed

Definition at line 204 of file Form.inc.php.

Referenced by DataverseAuthForm\_getServiceDocument(), SettingsForm\_validateDataverseTermsOfUse(), SettingsForm\_validateTermsOfUse(), QuickSubmitForm\display(), UsageStatsSettingsForm\display(), SubscriptionForm\display(), PLNSettingsForm\display(), CommentForm\email(), EditCommentForm\email(), ChangePasswordForm\execute(), ReferralPluginSettingsForm\execute(), AnnouncementForm\execute(), StopForumSpamSettingsForm\execute(), PhpMyVisitesSettingsForm\execute(), PiwikSettingsForm\execute(), LoginChangePasswordForm\execute(), AbntSettingsForm\execute(), SettingsForm\execute(), DataverseSelectForm\execute(), CategoryForm\execute(), SiteSettingsForm\execute(), UsageStatsSettingsForm\execute(), PeerReviewCommentForm\execute(), DepositPointForm\execute(), AuthorDepositForm\execute(), AuthSourceSettingsForm\execute(), JournalSetupStep1Form\execute(), DataverseAuthForm\execute(), ReviewFormResponseForm\execute(), DOIExportSettingsForm\execute(), ReviewFormForm\execute(), DuraCloudLoginForm\execute(), CustomThemeSettingsForm\execute(), PayMethodSettingsForm\execute(), GroupForm\execute(), ReviewObjectTypeForm\execute(), LuceneSettingsForm\execute(), XMLGalleySettingsForm\execute(), ReferralForm\execute(), DOISettingsForm\execute(), GoogleAnalyticsSettingsForm\execute(), URNSettingsForm\execute(), LanguageSettingsForm\execute(), EditCommentForm\execute(), VersionForm\execute(), NotificationMailingListForm\execute(), ThesisSettingsForm\execute(), JournalSiteSettingsForm\execute(), ObjectForReviewAssignmentForm\execute(), ContextForm\execute(), ReviewFormElementForm\execute(), EmailTemplateForm\execute(), SearchForm\execute(), ReviewObjectMetadataForm\execute(), ExternalFeedForm\execute(), GiftIndividualSubscriptionForm\execute(), SubscriptionPolicyForm\execute(), UserIndividualSubscriptionForm\execute(), AuthorSubmitStep5Form\execute(), CreateReviewerForm\execute(), ObjectsForReviewSettingsForm\execute(), PLNSettingsForm\execute(), AuthorSubmitStep1Form\execute(), InstitutionalSubscriptionForm\execute(), BooksForReviewSettingsForm\execute(), SubscriptionTypeForm\execute(), NotificationSettingsForm\execute(), ArticleGalleyForm\execute(), UserInstitutionalSubscriptionForm\execute(), AuthorSubmitStep3Form\execute(), ObjectForReviewForm\execute(), CommentForm\execute(), ThesisForm\execute(), IssueGalleyForm\execute(), StudentThesisForm\execute(), SectionForm\execute(), RegistrationForm\execute(), QuickSubmitForm\execute(), SuppFileForm\execute(), FilterForm\execute(), SubscriptionForm\execute(), ReportGeneratorForm\execute(), ProfileForm\execute(), UserManagementForm\execute(), BookForReviewForm\execute(), IssueForm\execute(), MetadataForm\execute(), CitationForm\fetch(), AuthorSubmitStep3Form\initData(), LanguageSettingsForm\initData(), MetadataForm\initData(), SettingsForm\readInputData(), UsageStatsSettingsForm\readInputData(), PLNSettingsForm\readInputData(), DataverseAuthForm\readInputData(), XMLGalleySettingsForm\readInputData(), PayMethodSettingsForm\readInputData(), JournalSiteSettingsForm\readInputData(), LanguageSettingsForm\readInputData(), CreateReviewerForm\readInputData(), InstitutionalSubscriptionForm\readInputData(), ExternalFeedForm\readInputData(), UserIndividualSubscriptionForm\readInputData(), UserInstitutionalSubscriptionForm\readInputData(), SubscriptionTypeForm\readInputData(), QuickSubmitForm\readInputData(), FilterForm\readInputData(), RegistrationForm\readInputData(), InstallForm\readInputData(), SubscriptionForm\readInputData(), UserManagementForm\readInputData(), ProfileForm\readInputData(), IssueForm\readInputData(), CustomBlockEditForm\save(), QuickSubmitForm\scheduleForPublication(), AuthorSubmitSuppFileForm\setSuppFileData(), SuppFileForm\setSuppFileData(), smartyFormLanguageChooser(), DuraCloudLoginForm\validate(), IssueForm\validate(), ArticleGalleyForm\validate(), SuppFileForm\validate(), IssueGalleyForm\validate(), and CitationForm\validate().

Form::getDefaultFormLocale ( )

Get the default form locale.

Returns
string

Definition at line 343 of file Form.inc.php.

References AppLocale\getLocale().

Referenced by getFormLocale().

Form::getErrorsArray ( )

Return set of errors that occurred in form validation. If multiple errors occurred processing a single field, only the first error is included.

Returns
array erroneous fields and associated error messages

Definition at line 431 of file Form.inc.php.

References $errorsArray.

Referenced by fetch(), and validate().

Form::getLocaleFieldNames ( )

Get the list of field names that need to support multiple locales

Returns
array

Definition at line 318 of file Form.inc.php.

References HookRegistry\call().

Referenced by JournalSetupForm\execute(), and smartyFormLanguageChooser().

Form::getRequiredLocale ( )

Get the required locale for this form (i.e. the locale for which required fields must be set, all others being optional)

Returns
string

Definition at line 131 of file Form.inc.php.

Referenced by AuthorSubmitStep3Form\AuthorSubmitStep3Form(), AuthorSubmitSuppFileForm\AuthorSubmitSuppFileForm(), MetadataForm\MetadataForm(), AuthorSubmitStep3Form\readInputData(), and MetadataForm\readInputData().

Form::getTemplate ( )

Get the template

Returns
string

Definition at line 122 of file Form.inc.php.

References $_template.

Form::initData ( )

Initialize form data for a new form.

Definition at line 221 of file Form.inc.php.

References HookRegistry\call().

Referenced by ObjectsForReviewEditorHandler\editObjectForReviewAssignment().

Form::isLocaleResubmit ( )

Determine whether or not the current request results from a resubmit of locale data resulting from a form language change.

Returns
boolean

Definition at line 334 of file Form.inc.php.

References PKPRequest\getUserVar().

Form::isValid ( )

Check if form passes all validation checks.

Returns
boolean

Definition at line 422 of file Form.inc.php.

Referenced by fetch(), CitationForm\validate(), and validate().

Form::readInputData ( )

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

Definition at line 234 of file Form.inc.php.

Form::readUserDateVars (   $vars)

Adds specified user date variables to input data.

Parameters
$varsarray the names of the date variables to read

Definition at line 381 of file Form.inc.php.

References HookRegistry\call(), PKPRequest\getUserDateVar(), and setData().

Referenced by QuickSubmitForm\readInputData(), and IssueForm\readInputData().

Form::readUserVars (   $vars)

Adds specified user variables to input data.

Parameters
$varsarray the names of the variables to read

Definition at line 365 of file Form.inc.php.

References HookRegistry\call(), PKPRequest\getUserVar(), and setData().

Referenced by FilterForm\FilterForm(), FilterForm\initData(), NotificationSettingsForm\readInputData(), AuthorSubmitStep2Form\readInputData(), EditorDecisionCommentForm\readInputData(), ChangePasswordForm\readInputData(), ReferralPluginSettingsForm\readInputData(), NotificationMailingListForm\readInputData(), UsageStatsSettingsForm\readInputData(), DuraCloudLoginForm\readInputData(), ExternalFeedSettingsForm\readInputData(), StopForumSpamSettingsForm\readInputData(), PhpMyVisitesSettingsForm\readInputData(), PiwikSettingsForm\readInputData(), LoginChangePasswordForm\readInputData(), StaticPagesSettingsForm\readInputData(), JournalSetupForm\readInputData(), SettingsForm\readInputData(), AbntSettingsForm\readInputData(), DataverseSelectForm\readInputData(), DepositPointForm\readInputData(), DataverseAuthForm\readInputData(), PeerReviewCommentForm\readInputData(), AuthorDepositForm\readInputData(), SiteSettingsForm\readInputData(), CategoryForm\readInputData(), XMLGalleySettingsForm\readInputData(), LuceneSettingsForm\readInputData(), PayMethodSettingsForm\readInputData(), ReviewFormResponseForm\readInputData(), AuthSourceSettingsForm\readInputData(), JournalSiteSettingsForm\readInputData(), DOIExportSettingsForm\readInputData(), CreateReviewerForm\readInputData(), ReviewFormForm\readInputData(), LanguageSettingsForm\readInputData(), CustomThemeSettingsForm\readInputData(), VersionForm\readInputData(), ReviewObjectTypeForm\readInputData(), GoogleAnalyticsSettingsForm\readInputData(), GroupForm\readInputData(), ObjectForReviewAssignmentForm\readInputData(), EditCommentForm\readInputData(), AuthorSubmitStep5Form\readInputData(), DOISettingsForm\readInputData(), ReferralForm\readInputData(), ContextForm\readInputData(), InstitutionalSubscriptionForm\readInputData(), URNSettingsForm\readInputData(), SearchForm\readInputData(), ThesisSettingsForm\readInputData(), ExternalFeedForm\readInputData(), CustomBlockEditForm\readInputData(), EmailTemplateForm\readInputData(), GiftIndividualSubscriptionForm\readInputData(), ReviewFormElementForm\readInputData(), AuthorSubmitStep3Form\readInputData(), ReviewObjectMetadataForm\readInputData(), ObjectsForReviewSettingsForm\readInputData(), SubscriptionPolicyForm\readInputData(), BooksForReviewSettingsForm\readInputData(), UserIndividualSubscriptionForm\readInputData(), UserInstitutionalSubscriptionForm\readInputData(), AuthorSubmitStep1Form\readInputData(), ArticleGalleyForm\readInputData(), SubscriptionTypeForm\readInputData(), PaymentSettingsForm\readInputData(), AuthorSubmitSuppFileForm\readInputData(), StudentThesisForm\readInputData(), CitationForm\readInputData(), ObjectForReviewForm\readInputData(), QuickSubmitForm\readInputData(), CommentForm\readInputData(), SectionForm\readInputData(), FilterForm\readInputData(), RegistrationForm\readInputData(), InstallForm\readInputData(), ThesisForm\readInputData(), SubscriptionForm\readInputData(), IssueGalleyForm\readInputData(), SuppFileForm\readInputData(), UserManagementForm\readInputData(), ProfileForm\readInputData(), BookForReviewForm\readInputData(), ReportGeneratorForm\readInputData(), MetadataForm\readInputData(), and IssueForm\readInputData().

Form::setData (   $key,
  $value 
)

Set the value of a form field.

Parameters
$key
$value

Definition at line 213 of file Form.inc.php.

References Core\cleanVar().

Referenced by DataverseAuthForm\_getServiceDocument(), SettingsForm\_validateDataverseTermsOfUse(), CreateReviewerForm\CreateReviewerForm(), UsageStatsSettingsForm\display(), NotificationMailingListForm\display(), RegistrationForm\display(), CommentForm\display(), StudentThesisForm\display(), SettingsForm\execute(), JournalSetupStep1Form\execute(), LanguageSettingsForm\execute(), ReportGeneratorForm\fetch(), FilterForm\FilterForm(), UsageStatsSettingsForm\initData(), SettingsForm\initData(), DataverseSelectForm\initData(), XMLGalleySettingsForm\initData(), DataverseAuthForm\initData(), StaticPagesSettingsForm\initData(), CustomBlockEditForm\initData(), DepositPointForm\initData(), PLNSettingsForm\initData(), AuthorSubmitStep3Form\initData(), LuceneSettingsForm\initData(), LanguageSettingsForm\initData(), DOIExportSettingsForm\initData(), DOISettingsForm\initData(), URNSettingsForm\initData(), FilterForm\initData(), CitationForm\initData(), MetadataForm\initData(), IssueForm\initData(), RegistrationForm\initData(), SettingsForm\readInputData(), UsageStatsSettingsForm\readInputData(), PLNSettingsForm\readInputData(), DataverseAuthForm\readInputData(), LuceneSettingsForm\readInputData(), JournalSiteSettingsForm\readInputData(), CreateReviewerForm\readInputData(), LanguageSettingsForm\readInputData(), ExternalFeedForm\readInputData(), SectionForm\readInputData(), FilterForm\readInputData(), RegistrationForm\readInputData(), InstallForm\readInputData(), UserManagementForm\readInputData(), ProfileForm\readInputData(), readUserDateVars(), readUserVars(), JournalSetupStep5Form\uploadImage(), and CitationForm\validate().

Form::setTemplate (   $template)

Set the template

Parameters
$templatestring

Definition at line 114 of file Form.inc.php.

Form::smartyFormLanguageChooser (   $params,
$smarty 
)

Add hidden form parameters for the localized fields for this form and display the language chooser field

Parameters
$paramsarray
$smartyobject

Definition at line 447 of file Form.inc.php.

References _decomposeArray(), getData(), getFormLocale(), and getLocaleFieldNames().

Form::validate (   $callHooks = true)

Validate form data.

Definition at line 241 of file Form.inc.php.

References $errorFields, addError(), HookRegistry\call(), PKPApplication\getApplication(), getErrorsArray(), and isValid().

Member Data Documentation

Form::$_checks

Validation checks for this form

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

Form::$_data

Associative array containing form data

Definition at line 52 of file Form.inc.php.

Form::$_errors

Errors occurring in form validation

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

Form::$_template

The template file containing the HTML form

Definition at line 49 of file Form.inc.php.

Referenced by getTemplate().

Form::$cssValidation

Client-side validation rules

Definition at line 70 of file Form.inc.php.

Form::$errorFields

Array of field names where an error occurred

Definition at line 64 of file Form.inc.php.

Referenced by validate().

Form::$errorsArray

Array of field names where an error occurred and the associated error message

Definition at line 61 of file Form.inc.php.

Referenced by getErrorsArray().

Form::$formSectionErrors

Array of errors for the form section currently being processed

Definition at line 67 of file Form.inc.php.


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