/** * Get a unique instance of the UserService. * * @access public * @author Jerome Bogaerts, <*****@*****.**> * @return core_kernel_users_Service */ public static function singleton() { $returnValue = null; if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); } $returnValue = self::$instance; return $returnValue; }