Пример #1
0
 /**
  * Get item path from FS method result, It supports item ID based file system
  * 
  * @param boolean|array $result
  * @param string $requestPath
  */
 protected function _resultPath($result, $requestPath)
 {
     if (!is_array($result)) {
         if ($this->fscache) {
             $this->fscache->flush();
         }
         $result = $this->fs->getMetaData($requestPath);
     }
     $path = $result && isset($result['path']) ? $result['path'] : false;
     if ($this->fscache && $path !== $requestPath) {
         $this->fscache->storeMiss($requestPath);
     }
     return $path;
 }