|
dmBridge PHP API
|
Inheritance diagram for DMAbstractForm:A base form class from which all forms should inherit.
The form creation & submission process is as follows:
Definition at line 30 of file DMAbstractForm.php.
| DMAbstractForm::addField | ( | DMFormField $ | field | ) |
Adds a field to the form.
| DMFormField | field |
Definition at line 87 of file DMAbstractForm.php.
Referenced by UNLVRandomAddForm::init(), UNLVHighlightAddForm::init(), DMTagForm::init(), DMObjectCommentForm::init(), DMCPTemplateSetForm::init(), DMCPTagSettingsForm::init(), DMCPRatingSettingsForm::init(), DMCPFeedSettingsForm::init(), DMCPEditCollectionForm::init(), DMCPCommentSettingsForm::init(), and DMCPBasicSettingsForm::init().
| DMAbstractForm::checkRadioWithNameAndValue | ( | $ | name, |
| $ | value | ||
| ) |
| string | name |
| mixed | value |
Definition at line 192 of file DMAbstractForm.php.
Referenced by DMCPEditCollectionForm::loadFromDataStore().
| static DMAbstractForm::getCaptchaOperands | ( | ) | [static] |
Definition at line 53 of file DMAbstractForm.php.
Referenced by DMObjectTemplateHelper::getHtmlCommentsSection(), DMObjectCommentForm::init(), and DMObjectCommentForm::loadFromPOSTData().
| DMAbstractForm::getFieldByName | ( | $ | name | ) |
| string | name |
Definition at line 106 of file DMAbstractForm.php.
Referenced by DMTagForm::doAction(), DMObjectCommentForm::doAction(), DMCPTemplateSetForm::loadFromDataStore(), DMCPTagSettingsForm::loadFromDataStore(), DMCPRatingSettingsForm::loadFromDataStore(), DMCPFeedSettingsForm::loadFromDataStore(), DMCPEditCollectionForm::loadFromDataStore(), DMCPCommentSettingsForm::loadFromDataStore(), DMCPBasicSettingsForm::loadFromDataStore(), DMObjectCommentForm::loadFromPOSTData(), and DMCPCommentSettingsForm::validate().
| DMAbstractForm::getFields | ( | ) |
Definition at line 96 of file DMAbstractForm.php.
Referenced by getFieldByName(), getFieldsByName(), and validate().
| DMAbstractForm::getFieldsByName | ( | $ | name | ) |
| string | name |
Definition at line 121 of file DMAbstractForm.php.
Referenced by checkRadioWithNameAndValue(), DMCPTemplateSetForm::loadFromDataStore(), DMCPEditCollectionForm::loadFromDataStore(), and loadFromPOSTData().
| DMAbstractForm::init | ( | ) | [abstract, protected] |
Should instantiate all form fields and add them to the form.
Reimplemented in UNLVHighlightAddForm, UNLVRandomAddForm, DMCPBasicSettingsForm, DMCPCommentSettingsForm, DMCPEditCollectionForm, DMCPFeedSettingsForm, DMCPRatingSettingsForm, DMCPTagSettingsForm, DMCPTemplateSetForm, DMObjectCommentForm, and DMTagForm.
| DMAbstractForm::loadFromDataStore | ( | ) | [protected] |
Override to populate the form with values from a persistent store, if necessary; otherwise ignore.
Reimplemented in UNLVHighlightAddForm, UNLVRandomAddForm, DMCPBasicSettingsForm, DMCPCommentSettingsForm, DMCPEditCollectionForm, DMCPFeedSettingsForm, DMCPRatingSettingsForm, DMCPTagSettingsForm, and DMCPTemplateSetForm.
Definition at line 146 of file DMAbstractForm.php.
| DMAbstractForm::loadFromPOSTData | ( | array $ | data | ) | [protected] |
| data | Array of POST data; typically the return value of DMHTTPRequest::getCurrent()->getRepresentation()->getFormValue(DMAbstractForm::DATA_PREFIX) |
Reimplemented in DMObjectCommentForm.
Definition at line 154 of file DMAbstractForm.php.
| DMAbstractForm::validate | ( | ) |
Calls isValid() on all fields.
| DMIllegalArgumentException | if a form field does not validate |
Reimplemented in DMCPCommentSettingsForm.
Definition at line 208 of file DMAbstractForm.php.