[xoops-cvslog 3934] CVS update: xoops2jp/html/modules/base/class

Back to archive index

Minahito minah****@users*****
2006年 8月 4日 (金) 19:54:45 JST


Index: xoops2jp/html/modules/base/class/imagebody.php
diff -u xoops2jp/html/modules/base/class/imagebody.php:1.1.2.2 xoops2jp/html/modules/base/class/imagebody.php:1.1.2.3
--- xoops2jp/html/modules/base/class/imagebody.php:1.1.2.2	Tue May 30 12:55:26 2006
+++ xoops2jp/html/modules/base/class/imagebody.php	Fri Aug  4 19:54:45 2006
@@ -4,31 +4,11 @@
 
 class BaseImagebodyObject extends XoopsSimpleObject
 {
-	var $mImageBody = null;
-	var $_mImageBodyLoadedFlag = false;
-
 	function BaseImagebodyObject()
 	{
 		$this->initVar('image_id', XOBJ_DTYPE_INT, '', false);
 		$this->initVar('image_body', XOBJ_DTYPE_TEXT, '', true);
 	}
-
-	function loadImagebody()
-	{
-		if ($this->_mImageBodyLoadedFlag == false) {
-			$handler =& xoops_getmodulehandler('imagebody', 'base');
-			$this->mImageBody =& $handler->get($this->get('image_id'));
-			$this->_mImageBodyLoadedFlag = true;
-		}
-	}
-
-	function &createImagebody()
-	{
-		$handler =& xoops_getmodulehandler('imagebody', 'base');
-		$obj =& $handler->create();
-		$obj->set('image_id', $this->get('image_id'));
-		return $obj;
-	}
 }
 
 class BaseImagebodyHandler extends XoopsObjectGenericHandler
@@ -36,25 +16,6 @@
 	var $mTable = "imagebody";
 	var $mPrimary = "image_id";
 	var $mClass = "BaseImagebodyObject";
-	
-	function insert(&$obj, $force = false)
-	{
-		if (!parent::insert($obj, $force)) {
-			print_r($this->db);
-			die();
-		}
-		
-		return true;
-	}
-
-	function delete(&$obj, $force = false)
-	{
-		$handler =& xoops_getmodulehandler('imagebody', 'base');
-		$handler->delete($obj->get('image_id'));
-		unset($handler);
-	
-		return parent::delete($obj, $force);
-	}
 }
 
 ?>


xoops-cvslog メーリングリストの案内
Back to archive index