Code

Intitial setup rework.
[gosa.git] / 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;
32   var $attributes   = array();
34   function get_title()
35   { 
36     return($this->s_title);
37   }
39   function get_long_title()
40   { 
41     return($this->s_title_long);
42   }
44   function get_small_info()
45   { 
46     return($this->s_info);
47   }
48   
49   function is_active()
50   {
51     return($this->is_active);
52   }
54   function is_enabled()
55   {
56     return($this->is_enabled);
57   }
59   function is_completed()
60   {
61     return($this->is_completed);
62   }
64   function set_active($value = TRUE)
65   {
66     if($value){ 
67       $this->is_active = TRUE;  
68     }else{
69       $this->is_active = FALSE;  
70     }
71   }
73   function set_enabled($value = TRUE)
74   {
75     if($value){ 
76       $this->is_enabled = TRUE;  
77     }else{
78       $this->is_enabled = FALSE;  
79     }
80   }
82   function set_completed($value = TRUE)
83   {
84     if($value){ 
85       $this->is_completed = TRUE;  
86     }else{
87       $this->is_completed = FALSE;  
88     }
89   }
91   /* Return attributes handled by this setup step */
92   function get_attributes()
93   {
94     $tmp = array();
95     foreach($this->attributes as $attr){
96       $tmp[$attr] = $this->$attr;
97     }
98     return($tmp);
99   }
104 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
105 ?>