[xoops-cvslog 5258] CVS update: xoops2jp/html/modules/legacy/class

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 10月 15日 (日) 01:32:18 JST


Index: xoops2jp/html/modules/legacy/class/image.php
diff -u xoops2jp/html/modules/legacy/class/image.php:1.1.2.1 xoops2jp/html/modules/legacy/class/image.php:1.1.2.2
--- xoops2jp/html/modules/legacy/class/image.php:1.1.2.1	Sat Oct 14 23:55:22 2006
+++ xoops2jp/html/modules/legacy/class/image.php	Sun Oct 15 01:32:18 2006
@@ -2,14 +2,14 @@
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
-class BaseImageObject extends XoopsSimpleObject
+class LegacyImageObject extends XoopsSimpleObject
 {
 	var $mImageCategory = null;
 	var $_mImageCategoryLoadedFlag = false;
 	var $mImageBody = null;
 	var $_mImageBodyLoadedFlag = false;
 
-	function BaseImageObject()
+	function LegacyImageObject()
 	{
 		$this->initVar('image_id', XOBJ_DTYPE_INT, '', false);
 		$this->initVar('image_name', XOBJ_DTYPE_STRING, '', true, 30);
@@ -24,7 +24,7 @@
 	function loadImagecategory()
 	{
 		if ($this->_mImageCategoryLoadedFlag == false) {
-			$handler =& xoops_getmodulehandler('imagecategory', 'base');
+			$handler =& xoops_getmodulehandler('imagecategory', 'legacy');
 			$this->mImageCategory =& $handler->get($this->get('imgcat_id'));
 			$this->_mImageCategoryLoadedFlag = true;
 		}
@@ -33,7 +33,7 @@
 	function loadImagebody()
 	{
 		if ($this->_mImageBodyLoadedFlag == false) {
-			$handler =& xoops_getmodulehandler('imagebody', 'base');
+			$handler =& xoops_getmodulehandler('imagebody', 'legacy');
 			$this->mImageBody =& $handler->get($this->get('image_id'));
 			$this->_mImageBodyLoadedFlag = true;
 		}
@@ -41,25 +41,25 @@
 
 	function &createImagebody()
 	{
-		$handler =& xoops_getmodulehandler('imagebody', 'base');
+		$handler =& xoops_getmodulehandler('imagebody', 'legacy');
 		$obj =& $handler->create();
 		$obj->set('image_id', $this->get('image_id'));
 		return $obj;
 	}
 }
 
-class BaseImageHandler extends XoopsObjectGenericHandler
+class LegacyImageHandler extends XoopsObjectGenericHandler
 {
 	var $mTable = "image";
 	var $mPrimary = "image_id";
-	var $mClass = "BaseImageObject";
+	var $mClass = "LegacyImageObject";
 
 	function insert(&$obj, $force = false)
 	{
 		if (parent::insert($obj, $force)) {
 			if (is_object($obj->mImageBody)) {
 				$obj->mImageBody->set('image_id', $obj->get('image_id'));
-				$handler =& xoops_getmodulehandler('imagebody', 'base');
+				$handler =& xoops_getmodulehandler('imagebody', 'legacy');
 				return $handler->insert($obj->mImageBody, $force);
 			}
 			
@@ -73,7 +73,7 @@
 	 *
 	 * Delete object and image file.
 	 *
-	 * @param $obj    BaseImageObject
+	 * @param $obj    LegacyImageObject
 	 * @param $force  boolean
 	 * @return boolean
 	 */	
@@ -88,7 +88,7 @@
 			}
 			
 			if (is_object($obj->mImageBody)) {
-				$handler =& xoops_getmodulehandler('imagebody', 'base');
+				$handler =& xoops_getmodulehandler('imagebody', 'legacy');
 				$handler->delete($obj->mImageBody, $force);
 			}
 			


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る