Continued extending the objects definition.
authorGunnar Wrobel <p@rdus.de>
Mon, 6 Apr 2009 18:39:56 +0000 (20:39 +0200)
committerGunnar Wrobel <p@rdus.de>
Mon, 6 Apr 2009 18:41:26 +0000 (20:41 +0200)
koward/config/labels.php
koward/config/objects.php
koward/config/order.php [new file with mode: 0644]
koward/config/visible.php [new file with mode: 0644]

index 8cba862..a462447 100644 (file)
@@ -1,11 +1,30 @@
 <?php
 
-$labels['cn'] = _("Common name");
+$labels['cn'] = _("Common Name");
 $labels['kolabSalutation'] = _("Salutation");
-$labels['givenName'] = _("First name");
-$labels['middleNames'] = _("Additional names");
-$labels['sn'] = _("Last name");
-$labels['snsuffix'] = _("Name suffix");
+$labels['givenName'] = _("First Name");
+$labels['middleNames'] = _("Additional Names");
+$labels['sn'] = _("Last Name");
+$labels['snsuffix'] = _("Name Suffix");
 $labels['personalTitle'] = _("Title");
 $labels['userPassword'] = _("Password");
 $labels['telephoneNumber'] = _("Phone");
+$labels['postOfficeBox'] = _("Post Office Box");
+$labels['street'] = _("Street");
+$labels['title'] = _("Job Title");
+$labels['postalCode'] = _("Postal Code");
+$labels['facsimileTelephoneNumber'] = _("Fax");
+$labels['l'] = _("City");
+$labels['jpegPhoto'] = _("Photo");
+$labels['mail'] = _("Mail Address");
+$labels['mobile'] = _("Mobile Phone");
+$labels['homePhone'] = _("Home Phone");
+$labels['homePostalAddress'] = _("Home Postal Address");
+$labels['labeledURI'] = _("Website");
+$labels['o'] = _("Company");
+$labels['birthName'] = _("Birth Name");
+$labels['kolabMaritalStatus'] = _("Marital Status");
+$labels['dateOfBirth'] = _("Date Of Birth");
+$labels['placeOfBirth'] = _("Place Of Birth");
+$labels['gender'] = _("Gender");
+
index 9715a03..dacf091 100644 (file)
@@ -39,18 +39,60 @@ $objects['person'] = array(
         ),
     ),
     'attributes'  => array(
-        'hide' => array(
-            'objectClass',
-            'id',
-           'cn',
-           'seeAlso',
-           'description',
+        'fields' => array(
+            'cn' => array(
+                'required' => false,
+            ),
+            'userPassword' => array(
+                'required' => true,
+            ),
         ),
-        'order' => array(
-            'sn' => 5,
-            'snsuffix' => 6,
-            'userPassword' => 7,
+    ),
+);
+
+$objects['organizationalperson'] = array(
+    'class'       => 'Horde_Kolab_Server_Object_Organizationalperson',
+    'label'       => _("Organizational person"),
+    'list_label'  => _("Organizational persons"),
+    'list_attributes'  => array(
+        'cn' => array(
+            'title' => _("Common name"),
+            'width' => 40,
+            'link_view'=> true,
+        ),
+        'sn' => array(
+            'title' => _("Last name"),
+            'width' => 40,
         ),
+    ),
+    'attributes'  => array(
+        'fields' => array(
+            'cn' => array(
+                'required' => false,
+            ),
+            'userPassword' => array(
+                'required' => true,
+            ),
+        ),
+    ),
+);
+
+$objects['inetperson'] = array(
+    'class'       => 'Horde_Kolab_Server_Object_Inetorgperson',
+    'label'       => _("Inet person"),
+    'list_label'  => _("Inet persons"),
+    'list_attributes'  => array(
+        'cn' => array(
+            'title' => _("Common name"),
+            'width' => 40,
+            'link_view'=> true,
+        ),
+        'sn' => array(
+            'title' => _("Last name"),
+            'width' => 40,
+        ),
+    ),
+    'attributes'  => array(
         'fields' => array(
             'cn' => array(
                 'required' => false,
@@ -122,7 +164,6 @@ $objects['kolabuser'] = array(
     'attributes'  => array(
         'hide' => array(
             'objectClass',
-            'userPassword',
             'seeAlso',
             'x121Address',
             'registeredAddress',
@@ -135,26 +176,28 @@ $objects['kolabuser'] = array(
             'kolabHomeMTA',
             'kolabDelegate',
         ),
-        'order' => array(
-            'mail' => 1,
-            'kolabSalutation' => 2,
-            'givenName' => 3,
-            'middleNames' => 4,
-            'sn' => 5,
-            'snsuffix' => 6,
-            'personalTitle' => 7,
-        ),
         'labels' => array(
             'mail' => _("Account ID"),
         ),
         'fields' => array(
             'kolabSalutation' => array(
-                'label' => _("Salutation"),
                 'type' => 'enum',
                 'params' => array('values' => array(_("Mr.") => _("Mr."),
                                                     _("Mrs.") => _("Mrs.")),
                                   'prompt' => true),
             ),
+            'gender' => array(
+                'type' => 'enum',
+                'params' => array('values' => array(_("1") => _("male"),
+                                                    _("2") => _("female")),
+                                  'prompt' => true),
+            ),
+            'kolabMaritalStatus' => array(
+                'type' => 'enum',
+                'params' => array('values' => array(_("0") => _("single"),
+                                                    _("1") => _("married")),
+                                  'prompt' => true),
+            ),
         ),
     ),
 );
diff --git a/koward/config/order.php b/koward/config/order.php
new file mode 100644 (file)
index 0000000..74e0a28
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+$order['mail'] = 1;
+$order['kolabSalutation'] = 2;
+$order['givenName'] = 3;
+$order['middleNames'] = 4;
+$order['sn'] = 5;
+$order['snsuffix'] = 6;
+$order['gender'] = 7;
+$order['userPassword'] = 10;
+$order['dateOfBirth'] = 12;
+$order['placeOfBirth'] = 13;
+$order['kolabMaritalStatus'] = 14;
+$order['birthName'] = 15;
+$order['telephoneNumber'] = 30;
+$order['mobile'] = 31;
+$order['facsimileTelephoneNumber'] = 32;
+$order['homePhone'] = 33;
diff --git a/koward/config/visible.php b/koward/config/visible.php
new file mode 100644 (file)
index 0000000..4a84d53
--- /dev/null
@@ -0,0 +1,56 @@
+<?php
+$visible['hide'] = array(
+    'objectClass',
+    'id',
+    'cn',
+    'seeAlso',
+    'description',
+    'physicalDeliveryOfficeName',
+    'internationaliSDNNumber',
+    'x121Address',
+    'registeredAddress',
+    'destinationIndicator',
+    'preferredDeliveryMethod',
+    'telexNumber',
+    'teletexTerminalIdentifier',
+    'postalAddress',
+    'ou',
+    'st',
+    'manager',
+    'uid',
+    'employeeType',
+    'photo',
+    'x500uniqueIdentifier',
+    'secretary',
+    'userSMIMECertificate',
+    'employeeNumber',
+    'initials',
+    'audio',
+    'pager',
+    'businessCategory',
+    'roomNumber',
+    'carLicense',
+    'userCertificate',
+    'departmentNumber',
+    'preferredLanguage',
+    'displayName',
+    'userPKCS12',
+    'kolabVacationEndDateTime',
+    'kolabVacationReactDomain',
+    'kolabVacationAddress',
+    'kolabForwardKeepCopy',
+    'kolabDeleteflag',
+    'kolabVacationBeginDateTime',
+    'kolabVacationResendInterval',
+    'kolabVacationReplyToUCE',
+    'kolabForwardAddress',
+    'kolabForwardUCE',
+    'kolabAllowSMTPFrom',
+    'unrestrictedMailSize',
+    'kolabInvitationPolicy',
+    'kolabFreeBusyFuture',
+    'calFBURL',
+    'kolabComment',
+
+    'jpegPhoto',
+);
\ No newline at end of file