1 <?php
2 /*
3 * This code is part of GOsa (http://www.gosa-project.org)
4 * Copyright (C) 2003-2008 GONICUS GmbH
5 *
6 * ID: $$Id: class_departmentGeneric.inc 11085 2008-05-28 10:54:49Z hickert $$
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
23 class organization extends department
24 {
25 /* attribute list for save action */
26 var $attributes = array( "o", "ou", "description","userPassword","searchGuide",
27 "seeAlso","businessCategory","x121Address","registeredAddress",
28 "destinationIndicator","preferredDeliveryMethod","telexNumber",
29 "telephoneNumber","internationaliSDNNumber","facsimileTelephoneNumber","street",
30 "postOfficeBox","postalCode", "postalAddress","physicalDeliveryOfficeName",
31 "st","l","teletexTerminalIdentifier");
33 var $objectclasses = array("top", "organization", "gosaDepartment");
35 /* Attributes
36 */
37 var $st ="";
38 var $l ="";
39 var $description ="";
40 var $userPassword ="";
41 var $searchGuide ="";
42 var $seeAlso ="";
43 var $businessCategory ="";
44 var $x121Address ="";
45 var $registeredAddress ="";
46 var $destinationIndicator ="";
47 var $preferredDeliveryMethod ="";
48 var $telexNumber ="";
49 var $telephoneNumber ="";
50 var $internationaliSDNNumber ="";
51 var $facsimileTelephoneNumber ="";
52 var $street ="";
53 var $postOfficeBox ="";
54 var $postalCode ="";
55 var $postalAddress ="";
56 var $teletexTerminalIdentifier="";
57 var $physicalDeliveryOfficeName="";
59 /* Naming attributes
60 */
61 var $o ="";
62 var $type = "o";
63 var $orgi_o = "";
64 var $namingAttr = "o";
66 function check()
67 {
68 $message = plugin::check();
69 return($message);
70 }
73 /* Return plugin informations for acl handling */
74 static function plInfo()
75 {
76 return (array("plShortName" => _("Organization"),
77 "plDescription" => _("Organization"),
78 "plSelfModify" => FALSE,
79 "plPriority" => 1,
80 "plDepends" => array(),
81 "plSection" => array("admin"),
82 "plCategory" => array("department"),
84 "plProvidedAcls" => array(
85 # "userPassword" => _("Password"),
86 # "searchGuide" => _("Search guide"),
87 # "seeAlso" => _("See also"),
88 # "x121Address" => _("No idea"),
89 # "registeredAddress" => _("Registered address"),
90 # "teletexTerminalIdentifier" => _("Teletext terminal identifier"),
91 # "physicalDeliveryOfficeName" => _("Physical delivery office name"),
92 # "internationaliSDNNumber" => _("International ISDN number"),
93 # "preferredDeliveryMethod" => _("Prefered delivery mode"),
94 # "telexNumber" => _("Telex number"),
97 "o" => _("Organization name"),
98 "description" => _("Description"),
99 "destinationIndicator" => _("Destination indicatior"),
100 "telephoneNumber" => _("Phone number"),
101 "street" => _("Street"),
102 "postOfficeBox" => _("Post office box "),
103 "postalCode" => _("Postal code"),
104 "postalAddress" => _("Postal address"),
105 "base" => _("Base"),
106 "businessCategory" => _("Category"),
107 "st" => _("State"),
108 "l" => _("Location"),
109 "gosaUnitTag" => _("Administrative settings"),
110 "facsimileTelephoneNumber"=> _("Fax"))
111 ));
112 }
114 }
116 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
117 ?>