[xoops-cvslog 1721] CVS update: xoops2jp/html/modules/legacyRender/class

Back to archive index

Minahito minah****@users*****
2006年 1月 14日 (土) 02:58:22 JST


Index: xoops2jp/html/modules/legacyRender/class/tplset.php
diff -u xoops2jp/html/modules/legacyRender/class/tplset.php:1.1.2.2 xoops2jp/html/modules/legacyRender/class/tplset.php:1.1.2.3
--- xoops2jp/html/modules/legacyRender/class/tplset.php:1.1.2.2	Sat Jan 14 02:33:40 2006
+++ xoops2jp/html/modules/legacyRender/class/tplset.php	Sat Jan 14 02:58:22 2006
@@ -37,6 +37,18 @@
 		
 		return true;	///< TODO
 	}
+
+	function delete(&$obj, $force)
+	{
+		if (!parent::delete($obj, $force)) {
+			return false;
+		}
+
+		$handler =& xoops_getmodulehandler('tplfile');
+		$handler->deleteAll(new Criteria('tplset_name', $obj->get('tpl_tplset')));
+		
+		return true;
+	}
 }
 
 ?>
Index: xoops2jp/html/modules/legacyRender/class/tplfile.php
diff -u xoops2jp/html/modules/legacyRender/class/tplfile.php:1.1.2.3 xoops2jp/html/modules/legacyRender/class/tplfile.php:1.1.2.4
--- xoops2jp/html/modules/legacyRender/class/tplfile.php:1.1.2.3	Sat Jan 14 02:33:40 2006
+++ xoops2jp/html/modules/legacyRender/class/tplfile.php	Sat Jan 14 02:58:22 2006
@@ -69,6 +69,8 @@
 			return false;
 		}
 		
+		$obj->loadSource();
+		
 		if (!is_object($obj->Source)) {
 			return true;
 		}
@@ -82,6 +84,23 @@
 			return $handler->insert($obj->Source, $force);
 		}
 	}
+	
+	function delete(&$obj, $force)
+	{
+		if (!parent::delete($obj, $force)) {
+			return false;
+		}
+		
+		$obj->loadSource();
+
+		if (!is_object($obj->Source)) {
+			return true;
+		}
+		else {
+			$handler =& xoops_getmodulehandler('tplsource');
+			return $handler->delete($obj->Source, $force);
+		}
+	}
 }
 
 ?>


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