示例#1
0
文件: Youtube.php 项目: techart/tao
 public function resize()
 {
     $sizes = $this->transform_args(func_get_args(), 'resize');
     $this->parms = array_merge($this->parms, $sizes);
     $parm = reset(func_get_args());
     return parent::resize($parm);
 }
示例#2
0
文件: Gallery.php 项目: techart/tao
 public function mods_reset()
 {
     parent::mods_reset();
     $this->remake_cache = array();
     return $this;
 }
示例#3
0
文件: Image.php 项目: techart/tao
 public function remove()
 {
     $path = $this->path();
     $default_image_path = $this->default_image_path();
     if (IO_FS::exists($path) && (!$default_image_path || $path != $default_image_path)) {
         IO_FS::rm($path);
         parent::set('');
         return true;
     }
     return false;
 }