コード例 #1
0
 private function getBaseUrl($projectFile)
 {
     switch ($this->storage->getDefaultDriver()) {
         case 'local':
             return $this->storage->getDriver()->getAdapter()->getPathPrefix() . $projectFile->id . '.' . $projectFile->extension;
     }
 }
コード例 #2
0
 private function getBaseURL($projetoFile)
 {
     switch ($this->storage->getDefaultDriver()) {
         case 'local':
             return $this->storage->disk('local')->getAdapter()->getPathPrefix() . '/' . $projetoFile->getFileName();
             //return $this->storage->getDrive()->getAdapter()->getPathPrefix() . '/' . $projetoFile->getFileName();
     }
 }
コード例 #3
0
 private function getBaseUrl($projectFile)
 {
     switch ($this->storage->getDefaultDriver()) {
         case 'local':
             return $this->storage->getDriver()->getAdapter()->getPathPrefix() . '/' . $projectFile->getFileName();
             break;
     }
 }
コード例 #4
0
 private function getBaseUrl($file)
 {
     switch ($this->storage->getDefaultDriver()) {
         case 'local':
             return $this->storage->getDriver()->getAdapter()->getPathPrefix() . '/' . $file->file;
     }
 }
コード例 #5
0
 private function getBaseURL($projectFile)
 {
     switch ($this->storage->getDefaultDriver()) {
         // ATENCAO: TIVE QUE DESCOMENTAR extension=php_fileinfo.dll NO PHP.INI
         case 'local':
             return $this->storage->getDriver()->getAdapter()->getPathPrefix() . '/' . $projectFile->id . '.' . $projectFile->extension;
             /*return $this->storage->getDriver()->getAdapter()->getPathPrefix()
               .$projectFile->id.'.'.$projectFile->extension;*/
         /*return $this->storage->getDriver()->getAdapter()->getPathPrefix()
           .$projectFile->id.'.'.$projectFile->extension;*/
         default:
             return Errors::basic('Driver de arquivo não tratado.');
     }
 }