// Add HTML code
$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'),
- $this->getConfigInstance()->readConfig('form_method'),
- $this->getConfigInstance()->readConfig('form_target')
+ $this->getConfigInstance()->getConfigEntry('base_url'),
+ $this->getConfigInstance()->getConfigEntry('form_action'),
+ $this->getConfigInstance()->getConfigEntry('form_method'),
+ $this->getConfigInstance()->getConfigEntry('form_target')
);
// Add form id as well
*/
public function addInputHiddenConfiguredField ($fieldName, $prefix) {
// Get the value from instance
- $fieldValue = $this->getConfigInstance()->readConfig("{$prefix}_{$fieldName}");
+ $fieldValue = $this->getConfigInstance()->getConfigEntry("{$prefix}_{$fieldName}");
//* DEBUG: */ echo __METHOD__.':'.$fieldName.'='.$fieldValue."<br />\n";
// Add the text field
* @return $required Wether the email address is required
*/
public function ifRegisterRequiresEmailVerification () {
- $required = ($this->getConfigInstance()->readConfig('register_requires_email') == 'Y');
+ $required = ($this->getConfigInstance()->getConfigEntry('register_requires_email') == 'Y');
return $required;
}
* @return $required Wether profile data shall be asked
*/
public function ifRegisterIncludesProfile () {
- $required = ($this->getConfigInstance()->readConfig('register_includes_profile') == 'Y');
+ $required = ($this->getConfigInstance()->getConfigEntry('register_includes_profile') == 'Y');
return $required;
}
* @return $isSecured Wether this form is secured by a CAPTCHA
*/
public function ifFormSecuredWithCaptcha () {
- $isSecured = ($this->getConfigInstance()->readConfig($this->getFormName().'_captcha_secured') == 'Y');
+ $isSecured = ($this->getConfigInstance()->getConfigEntry($this->getFormName().'_captcha_secured') == 'Y');
return $isSecured;
}