From: Raphaël Barrois Date: Wed, 17 Feb 2010 21:17:55 +0000 (+0100) Subject: Add an enumeration for profile_name_enum X-Git-Tag: xorg/1.0.0~332^2~205 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5c32cc1aa791015076c9fc171e287b26d0a061f6;p=platal.git Add an enumeration for profile_name_enum Signed-off-by: Raphaël Barrois --- 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