Example #1
0
 /**
  * get the users home folder to mount
  *
  * @return string
  */
 public function getHome()
 {
     if ($this->backend->implementsActions(\OC_USER_BACKEND_GET_HOME) and $home = $this->backend->getHome($this->uid)) {
         return $home;
     }
     return \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/' . $this->uid;
     //TODO switch to Config object once implemented
 }
Example #2
0
 /**
  * get the users home folder to mount
  *
  * @return string
  */
 public function getHome()
 {
     if (!$this->home) {
         if ($this->backend->implementsActions(\OC_USER_BACKEND_GET_HOME) and $home = $this->backend->getHome($this->uid)) {
             $this->home = $home;
         } elseif ($this->config) {
             $this->home = $this->config->getSystemValue('datadirectory') . '/' . $this->uid;
         } else {
             $this->home = \OC::$SERVERROOT . '/data/' . $this->uid;
         }
     }
     return $this->home;
 }