/** * Returns singleton instance. * * The instantiation of 2 WebDAV servers at the same time does not make * sense and could possibly cause strange effects, like double sending of a * response. Therefore the server implements a singleton and its only * instance must be retrieved using this method. Configuration changes can * then be performed through the properties of this instance. * * @return ezcWebdavServer */ public static function getInstance() { if (self::$instance === null) { self::$instance = new ezcWebdavServer(); } return self::$instance; }