FusionDirectory
Public Member Functions
SimpleTab Interface Reference
Inheritance diagram for SimpleTab:
Inheritance graph
[legend]

Public Member Functions

 check ()
 Checks data and return errors.
 
 remove (bool $fulldelete=FALSE)
 Delete tab data from LDAP and return errors.
 
 save ()
 Save data to the LDAP and return errors.
 
 resetCopyInfos ()
 Reset information after a copy/paste.
 
 set_acl_category (string $category)
 Sets ACL category provided by simpleTabs.
 
 acl_is_removeable (string $base=NULL)
 Can we delete the object. More...
 
 setTemplate (bool $isTemplate)
 Sets whether the opened objet is a template. More...
 
 setNeedEditMode (bool $needEditMode)
 Sets whether the opened objet has an edit button. More...
 
 is_modal_dialog ()
 Is there a modal dialog opened.
 
 getRequiredAttributes ()
 Returns list of required LDAP attributes. More...
 
 showInTemplate (string $attr, array $templateAttrs)
 Returns TRUE if this attribute should be asked in the creation by template dialog.
 
 attrIsReadable ($attr)
 Check if logged in user have enough right to read this attribute value. More...
 
 attrIsWriteable ($attr)
 Check if logged in user have enough right to write this attribute value. More...
 
 adapt_from_template (array $attrs, array $skip=[])
 Adapt from template.
 
 deserializeValues (array $values, bool $checkAcl=TRUE)
 Deserialize values. More...
 
 aclHasPermissions ()
 Test if the plugins have ACLs declared. More...
 
 aclGetPermissions ($attribute='0', string $base=NULL, bool $skipWrite=FALSE)
 Get the acl permissions for an attribute or the plugin itself.
 
 mergeObjectClasses (array $oc)
 Merge in objectClasses needed by this tab. More...
 
 fillHookAttrs (array &$addAttrs)
 Fill attributes which may be used in hooks. More...
 
 isActive ()
 Test whether a tab is active.
 
 isActivatable ()
 Test whether a tab can be deactivated.
 
- Public Member Functions inherited from FusionDirectoryDialog
 readPost ()
 Interpret POST content.
 
 update ()
 Update state and return FALSE if the dialog was closed.
 
 render ()
 Render the dialog and returns the HTML code.
 

Detailed Description

Definition at line 38 of file interface_SimpleTab.inc.

Member Function Documentation

◆ acl_is_removeable()

acl_is_removeable ( string  $base = NULL)

Can we delete the object.

Only used on main tab

Parameters
string$base

Implemented in simplePlugin.

◆ aclHasPermissions()

aclHasPermissions ( )

Test if the plugins have ACLs declared.

If FALSE tab is always shown, if TRUE aclGetPermissions('') is called

Implemented in simplePlugin.

◆ attrIsReadable()

attrIsReadable (   $attr)

Check if logged in user have enough right to read this attribute value.

Parameters
mixed$attrAttribute object or name (in this case it will be fetched from attributesAccess)

Implemented in simplePlugin, and ManagementConfigurationDialog.

◆ attrIsWriteable()

attrIsWriteable (   $attr)

Check if logged in user have enough right to write this attribute value.

Parameters
mixed$attrAttribute object or name (in this case it will be fetched from attributesAccess)

Implemented in simplePlugin, ManagementConfigurationDialog, SnapshotRestoreDialog, and SnapshotCreateDialog.

◆ deserializeValues()

deserializeValues ( array  $values,
bool  $checkAcl = TRUE 
)

Deserialize values.

Returns TRUE or error

Implemented in simplePlugin.

◆ fillHookAttrs()

fillHookAttrs ( array &  $addAttrs)

Fill attributes which may be used in hooks.

Used by simplePlugin::callHook

Implemented in simplePlugin, and SnapshotCreateDialog.

◆ getRequiredAttributes()

getRequiredAttributes ( )

Returns list of required LDAP attributes.

Used by template

Implemented in simplePlugin.

◆ mergeObjectClasses()

mergeObjectClasses ( array  $oc)

Merge in objectClasses needed by this tab.

Used by prepare_save and template::apply

Implemented in simplePlugin.

◆ setNeedEditMode()

setNeedEditMode ( bool  $needEditMode)

Sets whether the opened objet has an edit button.

Parameters
bool$needEditMode

Implemented in simplePlugin.

◆ setTemplate()

setTemplate ( bool  $isTemplate)

Sets whether the opened objet is a template.

Parameters
bool$isTemplate

Implemented in simplePlugin.


The documentation for this interface was generated from the following file: