/** * Returns the instance of the CifLdap class. * This is done to prevent multiple instances from being created, * because only one is needed at most. * @return CifLdap The CifLdap instance. */ public static function get_connection() { if (self::$instance === null) { self::$instance = new CifLdap(); } return self::$instance; }