[xoops-cvslog 1439] CVS update: xoops2jp/html/kernel

アーカイブの一覧に戻る

Minahito minah****@users*****
2005年 12月 27日 (火) 19:35:50 JST


Index: xoops2jp/html/kernel/block.php
diff -u xoops2jp/html/kernel/block.php:1.2.8.2 xoops2jp/html/kernel/block.php:1.2.8.3
--- xoops2jp/html/kernel/block.php:1.2.8.2	Sat Dec 10 18:50:35 2005
+++ xoops2jp/html/kernel/block.php	Tue Dec 27 19:35:50 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: block.php,v 1.2.8.2 2005/12/10 09:50:35 minahito Exp $
+// $Id: block.php,v 1.2.8.3 2005/12/27 10:35:50 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -339,6 +339,31 @@
         }
         return $ret;
     }
+    
+	function &getObjectsDirectly($criteria = null)
+	{
+		$ret = array();
+		$limit = 0;
+		$start = 0;
+
+		$sql = "SELECT * FROM " . $this->db->prefix('newblocks');
+		if ($criteria)
+			$sql .= " " . $criteria->renderWhere();
+
+		$result = $this->db->query($sql);
+		if (!$result) {
+			return $ret;
+		}
+
+		while ($row = $this->db->fetchArray($result)) {
+			$block = new XoopsBlock();
+			$block->assignVars($row);
+			unset($block);
+		}
+		
+		return $ret;
+	}
+
 
     /**
      * get a list of blocks matchich certain conditions


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