FusionDirectory
Public Member Functions | Static Public Member Functions | Protected Member Functions
simpleTabs Class Reference

This class contains all function to manage tabs classes. More...

Inheritance diagram for simpleTabs:
Inheritance graph
[legend]

Public Member Functions

 __construct (string $type, $dn, $attrs_object=NULL)
 Tabs classes constructor.
 
 re_init ()
 Reinitializes the tab classes with fresh ldap values. More...
 
 setActiveTabs (&$tabObject)
 Sets the active tabs from this instance to an other one. Used by templates.
 
 readOnly ()
 Indicates if this tab class is read-only (because of locks)
 
 save_object ()
 Save a tabs object.
 
 readPost ()
 Interpret POST content.
 
 update ()
 Update state and return FALSE if the dialog was closed.
 
 render ()
 This function display the plugin and return the html code.
 
 loadTabs ()
 Load tab list if needed.
 
 delete (bool $checkAcl=TRUE)
 Remove object from LDAP. More...
 
 check ()
 Check.
 
 adapt_from_template (array $attrs, array $skip=[])
 Adapt from template. More...
 
 addSpecialTabs ()
 Add special Tabs.
 
 getAclBase ()
 Get LDAP base to use for ACL checks.
 

Static Public Member Functions

static getPotentialTabList (string $type, array $infos)
 Returns the list of tabs which may appear for a given object type.
 

Protected Member Functions

 renderTabList (bool $disabled=FALSE)
 Generate the tab classes. More...
 

Detailed Description

This class contains all function to manage tabs classes.

Definition at line 30 of file class_simpleTabs.inc.

Member Function Documentation

◆ adapt_from_template()

adapt_from_template ( array  $attrs,
array  $skip = [] 
)

Adapt from template.

Parameters
array$attrsan LDAP-like values array
array$skipAttributes to skip

Definition at line 514 of file class_simpleTabs.inc.

References logging\debug().

◆ delete()

delete ( bool  $checkAcl = TRUE)

Remove object from LDAP.

Returns errors

Definition at line 353 of file class_simpleTabs.inc.

References msgPool\permDelete().

◆ re_init()

re_init ( )

Reinitializes the tab classes with fresh ldap values.

This maybe usefull if for example the apply button was pressed.

Definition at line 125 of file class_simpleTabs.inc.

◆ renderTabList()

renderTabList ( bool  $disabled = FALSE)
protected

Generate the tab classes.

Parameters
boolean$disabledfalse

Definition at line 285 of file class_simpleTabs.inc.

References htmlescape().

Referenced by render().


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