Changeset 7656
- Timestamp:
- Jul 8, 2008, 1:21:20 AM (13 years ago)
- Location:
- OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img/Generator.php
r7640 r7656 31 31 var $height = 0; 32 32 33 34 33 /** 35 34 * @var string … … 44 43 var $output_format; 45 44 46 47 45 /** 48 46 * @var string 49 47 * @access protected 50 48 */ 51 var $cache_dir;52 53 /**54 * @var string55 * @access protected56 */57 49 var $cache_fullpath; 58 50 … … 67 59 */ 68 60 var $allowed_size; 61 62 /** 63 * @var OpenPNE_Img_Cache 64 * @access public 65 */ 66 var $cache; 69 67 70 68 /** … … 84 82 } 85 83 86 if (!empty($options['cache_dir'])) { 87 $this->cache_dir = $options['cache_dir']; 88 } 84 require_once 'OpenPNE/Img/Cache.php'; 85 $this->cache =& new OpenPNE_Img_Cache($options); 89 86 } 90 87 … … 109 106 110 107 // キャッシュを生成 111 $this->createCacheSubdir($this->cache _dir);108 $this->createCacheSubdir($this->cache->getCacheDir()); 112 109 if ($output_img) { 113 110 $this->createCache($output_img); … … 202 199 { 203 200 $path = OpenPNE_Img::get_cache_path($filename, $this->width, $this->height, $this->getOutputFormat()); 204 $this->cache_fullpath = $this->cache _dir. '/' . $path;201 $this->cache_fullpath = $this->cache->getCacheDir() . '/' . $path; 205 202 } 206 203 -
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img/Generator/ImageMagick.php
r7551 r7656 44 44 $path = sprintf('%s/w_h_raw/%s', $format, $file); 45 45 46 $this->raw_cache_fullpath = $this->cache _dir. '/' . $path;46 $this->raw_cache_fullpath = $this->cache->getCacheDir() . '/' . $path; 47 47 } 48 48
Note: See TracChangeset
for help on using the changeset viewer.