1 <?php
3 class ldif extends plugin
4 {
5 /* Definitions */
6 var $plHeadline= "LDAP tools";
7 var $plDescription= "Export LDIF or Excel snapshots of the LDAP tree";
8 var $plIcon = "plugins/ldapmanager/images/ldif.png";
10 /* attribute list for save action */
11 var $attributes= array();
12 var $objectclasses= array();
13 var $ldif;
15 function ldif (&$config)
16 {
17 $this->initTime = microtime(TRUE);
19 stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open',
20 $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
23 /* Include config object */
24 $this->ldif= new ldiftab($config, $config->data['TABS']['LDIFTAB'], "");
26 }
28 function execute()
29 {
30 /* Call parent execute */
31 plugin::execute();
33 /* Show main page */
34 return ($this->ldif->execute());
35 }
37 /* Return plugin informations for acl handling
38 #FIXME You can only read attributes within this report plugin */
39 static function plInfo()
40 {
41 return (array(
42 "plShortName" => _("LDAP manager"),
43 "plDescription" => _("LDAP manager")." ("._("import")."/"._("export").")",
44 "plSelfModify" => FALSE,
45 "plDepends" => array(),
46 "plPriority" => 1,
47 "plSection" => array("addon"),
48 "plCategory" => array("ldapmanager" => array("description" => _("LDAP manager"))),
50 "plProvidedAcls" => array()
51 ));
52 }
56 }
59 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
60 ?>