47 public static function plInfo (): array;
51 public function check (): array;
55 public function remove (
bool $fulldelete = FALSE): array;
59 public function save (): array;
107 public function showInTemplate (
string $attr, array $templateAttrs): bool;
143 public function aclGetPermissions ($attribute =
'0',
string $base = NULL,
bool $skipWrite = FALSE): string;
fillHookAttrs(array &$addAttrs)
Fill attributes which may be used in hooks.
isActive()
Test whether a tab is active.
attrIsWriteable($attr)
Check if logged in user have enough right to write this attribute value.
deserializeValues(array $values, bool $checkAcl=TRUE)
Deserialize values.
This interface should be implemented by all dialog classes in FusionDirectory.
setNeedEditMode(bool $needEditMode)
Sets whether the opened objet has an edit button.
save()
Save data to the LDAP and return errors.
acl_is_removeable(string $base=NULL)
Can we delete the object.
aclGetPermissions($attribute='0', string $base=NULL, bool $skipWrite=FALSE)
Get the acl permissions for an attribute or the plugin itself.
adapt_from_template(array $attrs, array $skip=[])
Adapt from template.
aclHasPermissions()
Test if the plugins have ACLs declared.
showInTemplate(string $attr, array $templateAttrs)
Returns TRUE if this attribute should be asked in the creation by template dialog.
check()
Checks data and return errors.
mergeObjectClasses(array $oc)
Merge in objectClasses needed by this tab.
getRequiredAttributes()
Returns list of required LDAP attributes.
set_acl_category(string $category)
Sets ACL category provided by simpleTabs.
isActivatable()
Test whether a tab can be deactivated.
resetCopyInfos()
Reset information after a copy/paste.
is_modal_dialog()
Is there a modal dialog opened.
setTemplate(bool $isTemplate)
Sets whether the opened objet is a template.
attrIsReadable($attr)
Check if logged in user have enough right to read this attribute value.