/** * saveImage * * @param bool &$ret * @param Leimg_ImageObject $obj * * @return void */ public static function saveImage(&$ret, $obj) { $handler = Legacy_Utils::getModuleHandler('image', $obj->getDirname()); $ret = $handler->saveUploadedFile($obj); }
/** * removeThumbnails * * @param Leimg_ImageObject $obj * * @return void **/ public function removeThumbnails($obj) { $thumbs = $this->_getThumbnailList($obj->get('dirname'), $obj->get('dataname')); foreach (array_keys($thumbs) as $key) { if (file_exists($obj->getFilePath($thumbs[$key]->get('tsize')))) { @unlink($obj->getFilePath($thumbs[$key]->get('tsize'))); } } }