Code

Updated mysql connection and query handling, ensure that strings are save.wq
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 14:23:07 +0000 (14:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 14:23:07 +0000 (14:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19280 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/conference/class_phoneConferenceManagment.inc

index 29867ddaeda8b9ef22a157b791e8441dce81f634..792660e5bdb7af920d688e6821d89ebcd8ab43fe 100644 (file)
 
 class phoneConferenceManagment extends management
 {
-  var $plHeadline     = "Phone Conferences";
-  var $plDescription  = "Manage phone conference rooms in setups using the Asterisk VoIP service";
-  var $plIcon  = "plugins/gofon/images/conference.png";
+    var $plHeadline     = "Phone Conferences";
+    var $plDescription  = "Manage phone conference rooms in setups using the Asterisk VoIP service";
+    var $plIcon  = "plugins/gofon/images/conference.png";
 
-  // Tab definition 
-  protected $tabClass = "conferencetabs";
-  protected $tabType = "CONFERENCETABS";
-  protected $aclCategory = "gofonconference";
-  protected $aclPlugin   = "conference";
-  protected $objectName   = "phone conference";
+    // Tab definition 
+    protected $tabClass = "conferencetabs";
+    protected $tabType = "CONFERENCETABS";
+    protected $aclCategory = "gofonconference";
+    protected $aclPlugin   = "conference";
+    protected $objectName   = "phone conference";
 
-  function __construct($config,$ui)
-  {
-    $this->config = $config;
-    $this->ui = $ui;
-   
-    $this->storagePoints = array(get_ou("conference", "phoneConferenceRDN"));
-    // Build filter
-    if (session::global_is_set(get_class($this)."_filter")){
-      $filter= session::global_get(get_class($this)."_filter");
-    } else {
-      $filter = new filter(get_template_path("conf-filter.xml", true));
-      $filter->setObjectStorage($this->storagePoints);
-    }
-    $this->setFilter($filter);
+    function __construct($config,$ui)
+    {
+        $this->config = $config;
+        $this->ui = $ui;
 
-    // Build headpage
-    $headpage = new listing(get_template_path("conf-list.xml", true));
-    $headpage->setFilter($filter);
+        $this->storagePoints = array(get_ou("conference", "phoneConferenceRDN"));
 
-    // Add copy&paste and snapshot handler.
-    if ($this->config->boolValueIsTrue("core", "copyPaste")){
-      $this->cpHandler = new CopyPasteHandler($this->config);
-    }
-    if($this->config->get_cfg_value("core","enableSnapshots") == "true"){
-      $this->snapHandler = new SnapshotHandler($this->config);
+        // Build filter
+        if (session::global_is_set(get_class($this)."_filter")){
+            $filter= session::global_get(get_class($this)."_filter");
+        } else {
+            $filter = new filter(get_template_path("conf-filter.xml", true));
+            $filter->setObjectStorage($this->storagePoints);
+        }
+        $this->setFilter($filter);
+
+        // Build headpage
+        $headpage = new listing(get_template_path("conf-list.xml", true));
+        $headpage->setFilter($filter);
+
+        // Add copy&paste and snapshot handler.
+        if ($this->config->boolValueIsTrue("core", "copyPaste")){
+            $this->cpHandler = new CopyPasteHandler($this->config);
+        }
+        if($this->config->get_cfg_value("core","enableSnapshots") == "true"){
+            $this->snapHandler = new SnapshotHandler($this->config);
+        }
+        parent::__construct($config, $ui, "conferences", $headpage);
     }
-    parent::__construct($config, $ui, "conferences", $headpage);
-  }
 } 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>