From 92270b54d128e7f08de36893058bfc8f5dbf190b Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Mon, 6 Apr 2009 20:39:56 +0200 Subject: [PATCH] Continued extending the objects definition. --- koward/config/labels.php | 29 +++++++++++++--- koward/config/objects.php | 85 +++++++++++++++++++++++++++++++++++------------ koward/config/order.php | 17 ++++++++++ koward/config/visible.php | 56 +++++++++++++++++++++++++++++++ 4 files changed, 161 insertions(+), 26 deletions(-) create mode 100644 koward/config/order.php create mode 100644 koward/config/visible.php diff --git a/koward/config/labels.php b/koward/config/labels.php index 8cba862ba..a46244701 100644 --- a/koward/config/labels.php +++ b/koward/config/labels.php @@ -1,11 +1,30 @@ 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 index 000000000..74e0a2830 --- /dev/null +++ b/koward/config/order.php @@ -0,0 +1,17 @@ +