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 locality extends department
24 {
25 /* attribute list for save action */
26 var $attributes = array("l", "description");
27 var $objectclasses = array("top", "locality");
29 var $description= "";
30 var $type = "l";
31 var $l = "";
32 var $orig_l = "";
33 var $namingAttr = "l";
35 function check()
36 {
37 $message = plugin::check();
38 return($message);
39 }
42 /* Return plugin informations for acl handling */
43 static function plInfo()
44 {
45 return (array("plShortName" => _("Locality"),
46 "plDescription" => _("Locality"),
47 "plSelfModify" => FALSE,
48 "plPriority" => 3,
49 "plDepends" => array(),
50 "plSection" => array("admin"),
51 "plCategory" => array("department"),
53 "plProvidedAcls" => array(
57 "description" => _("Description"),
58 "l" => _("Location"),
59 "st" => _("State"),
61 "base" => _("Base"),
62 "gosaUnitTag" => _("Administrative settings")),
63 ));
64 }
65 }
67 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
68 ?>