From 5c32cc1aa791015076c9fc171e287b26d0a061f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Wed, 17 Feb 2010 22:17:55 +0100 Subject: [PATCH] Add an enumeration for profile_name_enum MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- include/directory.enums.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/directory.enums.inc.php b/include/directory.enums.inc.php index 095cd48..d2c816c 100644 --- a/include/directory.enums.inc.php +++ b/include/directory.enums.inc.php @@ -29,6 +29,8 @@ class DirEnum * Each of these consts contains the basename of the class (its full name * being DE_$basename). */ + const NAMETYPES = 'nametypes'; + const BINETS = 'binets'; const GROUPESX = 'groupesx'; const SECTIONS = 'sections'; @@ -259,6 +261,15 @@ abstract class DirEnumeration } // }}} +// {{{ class DE_NameTypes +// returns 'system' names ('lastname', 'lastname_marital', ...) +class DE_NameTypes extends DirEnumeration +{ + protected $from = 'profile_name_enum'; + protected $valfield = 'type'; +} +// }}} + /** GROUPS */ // {{{ class DE_Binets -- 2.1.4