25 public static $columns = [
26 [
'ObjectTypeColumn', []],
27 [
'LinkColumn', [
'attributes' =>
'mail',
'label' =>
'Email']],
28 [
'LinkColumn', [
'attributes' =>
'nameAttr',
'label' =>
'Name']],
36 protected $dialogClass =
'mailAddressSelect';
46 protected $dialogClass =
'MailSelectDialog';
57 function __construct ($label, $description, $ldapName, $required = FALSE, $defaultValue = [], $acl =
'')
62 public function getSelectManagementParameters (): array
73 $this->getFilterBlackList(),
76 [
'TabFilterElement', []],
77 [
'FixedFilterElement', [
'(mail=*)']],
82 function getFilterBlackList ()
84 return [
'mail' => $this->getValue()];
87 function addValue (
string $dn, $attrs = NULL)
89 $value = (($attrs != NULL) ? $attrs[
'mail'][0] : $dn);
90 if (!in_array($value, $this->value)) {
91 $this->value[] = $value;
95 function renderButtons ()
97 $id = $this->getHtmlId();
98 $buttons = $this->renderInputField(
101 'class' =>
'subattribute',
105 $buttons .= $this->renderInputField(
106 'submit',
'add'.$id.
'_dialog',
108 'class' =>
'dialog subattribute',
112 $buttons .= $this->renderInputField(
115 'class' =>
'subattribute',
122 public function htmlIds (): array
124 $id = $this->getHtmlId();
125 return [
'add'.$id,
'add'.$id.
'_dialog',
'del'.$id,
'row'.$id];
Mail address selection dialog.
static delButton($escape=TRUE)
Text for an delete button.
Generic dialog for selection using a selectManagement class.
static addButton($escape=TRUE)
Text for an add button.
This class allows to handle an attribute with a popup for selection.
__construct($label, $description, $ldapName, $required=FALSE, $defaultValue=[], $acl='')
The constructor of MailsAttribute.
__construct(\FusionDirectory\Core\SimplePlugin\Attribute $attribute, array $values=[], bool $valueUnicity=TRUE)
The constructor of SetAttribute.
Management class for selection dialogs.
This class allow to handle easily a String LDAP attribute that contains a mail address.
This class allows to handle an attribute for selecting an mail address.