Example #1
0
 /**
  * Returns the instance of WebDAVUtils
  *
  * @return WebDAVUtils
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 /**
  * Returns an instance of WebDAVUtils
  *
  * @return WebDAVUtils
  */
 function getUtils()
 {
     return WebDAVUtils::getInstance();
 }
Example #3
0
 /**
  * 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());
 }