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