*/
class WebFormHelper extends BaseWebHelper implements HelpableTemplate {
/**
- * Whether the form tag is opened (keep at false or else your forms will
+ * Whether the form tag is opened (keep at FALSE or else your forms will
* never work!)
*/
private $formOpened = FALSE;
private $formName = '';
/**
- * Whether form tag is enabled (default: true)
+ * Whether form tag is enabled (default: TRUE)
*/
private $formEnabled = TRUE;
// Set form name
$helperInstance->setFormName($formName);
- // A form-less field may say 'false' here...
+ // A form-less field may say 'FALSE' here...
if ($withForm === TRUE) {
// Create the form
$helperInstance->addFormTag($formName, $formId);
} else {
// Disable form
- $helperInstance->enableForm(false);
+ $helperInstance->enableForm(FALSE);
}
// Return the prepared instance
/**
* Add the form tag or close it an already opened form tag
*
- * @param $formName Name of the form (default: false)
- * @param $formId Id of the form (attribute 'id'; default: false)
+ * @param $formName Name of the form (default: FALSE)
+ * @param $formId Id of the form (attribute 'id'; default: FALSE)
* @return void
* @throws InvalidFormNameException If the form name is invalid ( = FALSE)
* @todo Add some unique PIN here to bypass problems with some browser and/or extensions
// Same group to open?
if (($this->ifGroupOpenedPreviously() === FALSE) && ($groupId === $this->getPreviousGroupId())) {
// Abort here silently
- return false;
+ return FALSE;
} // END - if
// Initialize content with closing div by default
// Same sub group to open?
if (($this->ifSubGroupOpenedPreviously() === FALSE) && ($subGroupId == $this->getPreviousSubGroupId())) {
// Abort here silently
- return false;
+ return FALSE;
} // END - if
// Initialize content with closing div by default
* @todo Implement check if rules have been changed
*/
public function ifRulesHaveChanged () {
- return false;
+ return FALSE;
}
/**