Code

Save scroll position
[gosa.git] / gosa-core / include / class_management.inc
index 516f0b476ffd81be76e4addaf5f5a19967d34cb2..98f02cee2fa00e1f020fc4958dc88d4833b15697 100644 (file)
@@ -58,7 +58,10 @@ class management
   protected $last_dialogObject = null;
 
   // Whether to display the apply button or not
-  protected $displayApplyBtn = "";
+  protected $displayApplyBtn = FALSE;
+
+  // Whether to display a header or not.
+  protected $skipHeader = false;
 
   // Whether to display a footer or not.
   protected $skipFooter = false;
@@ -79,6 +82,9 @@ class management
   // A list of configured actions/events
   protected $actions = array();
 
+  // Attributes managed by this plugin, can be used in post events;
+  protected $attributes = array(); 
+
   function  __construct(&$config,$ui,$plugname, $headpage)
   {
     $this->plugname = $plugname;
@@ -200,6 +206,8 @@ class management
    */
   protected function getHeader()
   {
+    if($this->skipHeader) return("");
+
     if (get_object_info() != ""){
       $display= print_header(get_template_path($this->plIcon),_($this->plDescription),
           "<img alt=\"\" class=\"center\" src=\"".get_template_path('images/lists/locked.png')."\">".
@@ -743,6 +751,7 @@ class management
     $this->dns = array();
     $this->tabObject = null;
     $this->dialogObject = null;
+    $this->skipFooter = FALSE;
     set_object_info();
   }