26 protected $buttonText = NULL;
29 function __construct ($label, $description, $ldapName, $buttonText, $action = NULL, $defaultValue =
"", $acl =
"")
31 parent::__construct($label, $description, $ldapName, FALSE, $defaultValue, $acl);
32 $this->buttonText = $buttonText;
33 if ($action === NULL) {
34 $action =
'handle_'.$ldapName;
36 $this->action = $action;
39 function renderFormInput ():
string 41 $id = $this->getHtmlId();
42 $display = $this->renderInputField(
44 [
'value' => $this->buttonText]
49 function loadPostValue ()
51 $this->postValue = FALSE;
52 if ($this->isVisible() && isset($_POST[$this->getHtmlId()])) {
57 function applyPostValue ()
59 if (!$this->disabled && $this->isVisible() && $this->postValue) {
60 $func = $this->action;
61 $this->plugin->$func();
setPostValue($value)
Set the postValue.
renderAcl(string $display)
Add ACL information around display.
This class allow to handle easily any kind of LDAP attribute.