public function path($key = '') { if (($versions = ($versions = array_merge($this->getVersions(), $this->getVirtualVersions())) ? $versions : $this->configs['default_version']) && isset($versions[$key]) && ($fileName = $key . $this->configs['separate_symbol'] . $this->getValue())) { return parent::path($fileName); } else { return array(); } return $this->getDebug() ? error('OrmImageUploader 錯誤!', '未知的 driver,系統尚未支援 ' . $this->getDriver() . ' 的空間!', '請檢查 config/system/orm_uploader.php 設定檔!') : array(); }
public function path() { return parent::path($this->getValue()); }