parent
7215e273f6
commit
930e6e7d71
|
@ -53,7 +53,5 @@ class LoginForm extends Form
|
|||
'value' => Url::fromRequest()->getParam('redirect')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,8 +69,6 @@ class AutologinBackendForm extends Form
|
|||
'value' => 'autologin'
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -77,8 +77,6 @@ class DbBackendForm extends Form
|
|||
'value' => 'db'
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -96,8 +96,6 @@ class LdapBackendForm extends Form
|
|||
'value' => 'ldap'
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -318,7 +318,5 @@ class AuthenticationBackendConfigForm extends ConfigForm
|
|||
}
|
||||
|
||||
$this->addElements($this->getBackendForm($backendType)->createElements($formData)->getElements());
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,7 +112,5 @@ class ApplicationConfigForm extends Form
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,8 +102,6 @@ class LoggingConfigForm extends Form
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -33,8 +33,6 @@ class GeneralConfigForm extends ConfigForm
|
|||
$loggingConfigForm = new LoggingConfigForm();
|
||||
$this->addElements($appConfigForm->createElements($formData)->getElements());
|
||||
$this->addElements($loggingConfigForm->createElements($formData)->getElements());
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -92,8 +92,6 @@ class DbResourceForm extends Form
|
|||
'description' => t('The password to use for authentication')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -44,7 +44,5 @@ class FileResourceForm extends Form
|
|||
'description' => t('The regular expression by which to identify columns')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,8 +78,6 @@ class LdapResourceForm extends Form
|
|||
'description' => t('The password to use for querying the ldap server')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -39,8 +39,6 @@ class LivestatusResourceForm extends Form
|
|||
'value' => realpath(Icinga::app()->getApplicationDir() . '/../var/rw/livestatus')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -48,7 +48,5 @@ class StatusdatResourceForm extends Form
|
|||
'validators' => array(new ReadablePathValidator())
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -252,7 +252,5 @@ class ResourceConfigForm extends ConfigForm
|
|||
}
|
||||
|
||||
$this->addElements($this->getResourceForm($resourceType)->createElements($formData)->getElements());
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,8 +100,6 @@ class AddUrlForm extends Form
|
|||
'helptext' => t('The title for the dashlet')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -206,8 +206,6 @@ class PreferenceForm extends Form
|
|||
'label' => t('Use benchmark')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -304,8 +304,8 @@ class Form extends Zend_Form
|
|||
public function create(array $formData = array())
|
||||
{
|
||||
if (false === $this->created) {
|
||||
$this->createElements($formData)
|
||||
->addFormIdentification()
|
||||
$this->createElements($formData);
|
||||
$this->addFormIdentification()
|
||||
->addCsrfCounterMeasure()
|
||||
->addSubmitButton();
|
||||
|
||||
|
@ -327,12 +327,10 @@ class Form extends Zend_Form
|
|||
* Intended to be implemented by concrete form classes.
|
||||
*
|
||||
* @param array $formData The data sent by the user
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function createElements(array $formData)
|
||||
{
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -238,7 +238,5 @@ class BackendConfigForm extends ConfigForm
|
|||
'multiOptions' => $this->resources[$resourceType]
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,5 @@ class LocalInstanceForm extends Form
|
|||
'description' => t('The file path where the icinga commandpipe can be found')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,5 @@ class RemoteInstanceForm extends Form
|
|||
'description' => t('The file path where the icinga commandpipe can be found')
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -205,7 +205,5 @@ class InstanceConfigForm extends ConfigForm
|
|||
);
|
||||
|
||||
$this->addElements($this->getInstanceForm($instanceType)->createElements($formData)->getElements());
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,5 @@ class SecurityConfigForm extends ConfigForm
|
|||
. ' Existance of those custom variables will be shown, but their values will be masked.'
|
||||
)
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue