From db86b3b535db83a52bf331727a88d97f09ad97af Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 24 Dec 2009 15:02:30 +0100 Subject: [PATCH] LSaddons::Samba : Added the LS_SAMBA_INFINITY_TIME constante and the return_sambaInfinityTime() function. --- public_html/includes/addons/LSaddons.samba.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/public_html/includes/addons/LSaddons.samba.php b/public_html/includes/addons/LSaddons.samba.php index c43510c4..f198214e 100644 --- a/public_html/includes/addons/LSaddons.samba.php +++ b/public_html/includes/addons/LSaddons.samba.php @@ -48,6 +48,11 @@ LSerror :: defineError('SAMBA_04', _("SAMBA Support : The %{attr} of the sambaDomain object is incorrect.") ); +// CONSTANTES + +// Le temps infini au sens NT +define('LS_SAMBA_INFINITY_TIME',2147483647); + /** * Verification du support Samba par ldapSaisie * @@ -287,4 +292,17 @@ LSerror :: defineError('SAMBA_04', } } + /** + * Retourne le temps infini au sens NT + * + * @author Benjamin Renard + * + * @param[in] $ldapObject L'objet ldap + * + * @retval integer le temps infinie au sens NT + */ + function return_sambaInfinityTime($ldapObject) { + return LS_SAMBA_INFINITY_TIME; + } + ?>