/**
* Name of the form
*/
- private $formName = "";
+ private $formName = '';
/**
* Wether form tag is enabled (default: true)
// Check wether we shall open or close the form
if (($this->formOpened === false) && ($this->formEnabled === true)) {
// Add HTML code
- $formContent = sprintf("<form name=\"%s\" class=\"forms\" action=\"%s/%s\" method=\"%s\" target=\"%s\"",
+ $formContent = sprintf("<form name=\"%s\" class=\"forms\" action=\"%s/%s\" method=\"%s\" target=\"%s\'',
$formName,
$this->getConfigInstance()->readConfig('base_url'),
$this->getConfigInstance()->readConfig('form_action'),
);
// Add form id as well
- $formContent .= sprintf(" id=\"%s_form\"",
+ $formContent .= sprintf(" id=\"%s_form\'',
$formId
);
* @return void
* @throws FormClosedException If the form is not yet opened
*/
- public function addInputTextField ($fieldName, $fieldValue = "") {
+ public function addInputTextField ($fieldName, $fieldValue = '') {
// Is the form opened?
if (($this->formOpened === false) && ($this->formEnabled === true)) {
// Throw an exception
* @return void
* @throws FormClosedException If the form is not yet opened
*/
- public function addInputPasswordField ($fieldName, $fieldValue = "") {
+ public function addInputPasswordField ($fieldName, $fieldValue = '') {
// Is the form opened?
if (($this->formOpened === false) && ($this->formEnabled === true)) {
// Throw an exception
* @return void
* @throws FormClosedException If the form is not yet opened
*/
- public function addInputHiddenField ($fieldName, $fieldValue = "") {
+ public function addInputHiddenField ($fieldName, $fieldValue = '') {
// Is the form opened?
if (($this->formOpened === false) && ($this->formEnabled === true)) {
// Throw an exception
} // END - if
// Set wether the check box is checked...
- $checked = " checked=\"checked\"";
+ $checked = " checked=\"checked\'';
if ($fieldChecked === false) $checked = " ";
// Generate the content
* @throws FormClosedException If no form has been opened before
* @throws EmptyVariableException If $groupId is not set
*/
- public function addFormGroup ($groupId = "", $groupText = "") {
+ public function addFormGroup ($groupId = '', $groupText = '') {
// Is a form opened?
if (($this->formOpened === false) && ($this->formEnabled === true)) {
// Throw exception here
* @throws FormFormClosedException If no group has been opened before
* @throws EmptyVariableException If $subGroupId is not set
*/
- public function addFormSubGroup ($subGroupId = "", $subGroupText = "") {
+ public function addFormSubGroup ($subGroupId = '', $subGroupText = '') {
// Is a group opened?
if ($this->ifGroupOpenedPreviously() === false) {
// Throw exception here