Example #1
0
 /**
  * Get url to view entity of storage (ex. user profile, group profile, etc)
  * By default: folder list
  * @return string
  */
 public function getEntityUrl()
 {
     if ($this->getUser()->isExtranetUser()) {
         $extranetUser = new ExtranetUser($this->entityId, $this->storage, $this->entityMiscData);
         return $extranetUser->getEntityUrl();
     }
     $userPage = \COption::getOptionString("socialnetwork", "user_page", false, SITE_ID);
     if (!$userPage) {
         $userPage = SITE_DIR . 'company/personal/';
     }
     return $userPage . 'user/' . $this->entityId . '/';
 }
 private function getPathToUserLib(User $userModel, Storage $storageModel)
 {
     if ($userModel->isExtranetUser()) {
         $extranetProxyType = new ProxyType\ExtranetUser($userModel->getId(), $storageModel);
         return $extranetProxyType->getBaseUrlFolderList();
     }
     return $storageModel->getProxyType()->getBaseUrlFolderList();
 }