Esempio n. 1
0
 /**
  * @param int $foderId
  * @param int $id_acct
  * @return string|false
  */
 function GetFolderFullName($folderId, $id_acct)
 {
     if ($folderId > 0 && $this->DbStorage->Connect()) {
         if (USE_DB) {
             return $this->DbStorage->GetFolderFullName($folderId, $id_acct);
         } else {
             if (isset($_SESSION[ACCOUNT_FOLDERS])) {
                 $folder = null;
                 $folders = FolderCollection::GetFromSession();
                 if ($folders) {
                     $folder =& $folders->GetFolderById($folderId);
                 }
                 if ($folder) {
                     return $folder->FullName;
                 }
             }
         }
     }
     return false;
 }