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
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 setup_step()
35 {
36 }
38 function save_object()
39 {
40 /* Do not call plugin::save_object. This causes acl trouble */
41 }
43 function get_title()
44 {
45 return($this->s_title);
46 }
48 function get_long_title()
49 {
50 return($this->s_title_long);
51 }
53 function get_small_info()
54 {
55 return($this->s_info);
56 }
58 function is_active()
59 {
60 return($this->is_active);
61 }
63 function is_enabled()
64 {
65 return($this->is_enabled);
66 }
68 function is_completed()
69 {
70 return($this->is_completed);
71 }
73 function set_active($value = TRUE)
74 {
75 if($value){
76 $this->is_active = TRUE;
77 }else{
78 $this->is_active = FALSE;
79 }
80 }
82 function set_enabled($value = TRUE)
83 {
84 if($value){
85 $this->is_enabled = TRUE;
86 }else{
87 $this->is_enabled = FALSE;
88 }
89 }
91 function set_completed($value = TRUE)
92 {
93 if($value){
94 $this->is_completed = TRUE;
95 }else{
96 $this->is_completed = FALSE;
97 }
98 }
100 /* Return attributes handled by this setup step */
101 function get_attributes()
102 {
103 $tmp = array();
104 foreach($this->attributes as $attr){
105 $tmp[$attr] = $this->$attr;
106 }
107 return($tmp);
108 }
109 }
113 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
114 ?>