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