Code

Updated stats handling.
[gosa.git] / gosa-core / setup / class_setupStep.inc
1 <?php
3 /*
4    This code is part of GOsa (https://gosa.gonicus.de)
5    Copyright (C) 2007 Fabian Hickert
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 */
23 class setup_step extends plugin
24 {
25   var $s_title      = "Still undefined";
26   var $s_title_long = "This is a still undefined long title";
27   var $s_info       = "This info is still undefined. This setup step detect the type of your ldap. This is a basic requirement for gosa.";
28   var $is_active    = false;
29   var $is_enabled   = false;
30   var $is_completed = false;
31   var $b_displayCheckbutton = false;
33   var $header_image = "images/setup/user.png";
35   var $attributes   = array();
36   var $parent       = NULL;
37   var $dialog       = FALSE;
38   
39   function setup_step()
40   {
41   }
43   function execute()
44   { 
45   }
47   function save_object()
48   {
49     /* Do not call plugin::save_object. This causes acl trouble  */
50   }
52   function get_title()
53   { 
54     return($this->s_title);
55   }
57   function get_long_title()
58   { 
59     return($this->s_title_long);
60   }
62   function get_small_info()
63   { 
64     return($this->s_info);
65   }
66   
67   function is_active()
68   {
69     return($this->is_active);
70   }
72   function is_enabled()
73   {
74     return($this->is_enabled);
75   }
77   function is_completed()
78   {
79     return($this->is_completed);
80   }
82   function set_active($value = TRUE)
83   {
84     if($value){ 
85       $this->is_active = TRUE;  
86     }else{
87       $this->is_active = FALSE;  
88     }
89   }
91   function set_enabled($value = TRUE)
92   {
93     if($value){ 
94       $this->is_enabled = TRUE;  
95     }else{
96       $this->is_enabled = FALSE;  
97     }
98   }
100   function set_completed($value = TRUE)
101   {
102     if($value){ 
103       $this->is_completed = TRUE;  
104     }else{
105       $this->is_completed = FALSE;  
106     }
107   }
109   /* Return attributes handled by this setup step */
110   function get_attributes()
111   {
112     $tmp = array();
113     foreach($this->attributes as $attr){
114       $tmp[$attr] = $this->$attr;
115     }
116     return($tmp);
117   }
119   function getTitle()
120   {
121       return($this->s_title_long);
122   }
124   function getImage()
125   {
126       return($this->header_image);
127   }
131 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
132 ?>