/** * Returns the instance of WebDAVUtils * * @return WebDAVUtils */ public static function getInstance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }
/** * Returns an instance of WebDAVUtils * * @return WebDAVUtils */ function getUtils() { return WebDAVUtils::getInstance(); }
/** * Returns a new WebDAVProject from the given group Id * * @param Integer $groupId * * @return WebDAVProject */ function getWebDAVProject($groupId) { $utils = WebDAVUtils::getInstance(); $project = $utils->getProjectManager()->getProject($groupId); return new WebDAVProject($this->getUser(), $project, $this->getMaxFileSize()); }