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

Back to archive index

Minahito minah****@users*****
2006年 1月 26日 (木) 01:18:11 JST


Index: xoops2jp/html/modules/base/class/comment.php
diff -u /dev/null xoops2jp/html/modules/base/class/comment.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:18:11 2006
+++ xoops2jp/html/modules/base/class/comment.php	Thu Jan 26 01:18:11 2006
@@ -0,0 +1,37 @@
+<?php
+
+class BaseCommentObject extends XoopsSimpleObject
+{
+	function BaseCommentObject()
+	{
+		$this->initVar('com_id', XOBJ_DTYPE_INT, '', true);
+		$this->initVar('com_pid', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('com_rootid', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('com_modid', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('com_itemid', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('com_icon', XOBJ_DTYPE_STRING, '', true, 25);
+		$this->initVar('com_created', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('com_modified', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('com_uid', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('com_ip', XOBJ_DTYPE_STRING, '', true, 15);
+		$this->initVar('com_title', XOBJ_DTYPE_STRING, '', true, 255);
+		$this->initVar('com_text', XOBJ_DTYPE_TEXT, '', true);
+		$this->initVar('com_sig', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('com_status', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('com_exparams', XOBJ_DTYPE_STRING, '', true, 255);
+		$this->initVar('dohtml', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('dosmiley', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('doxcode', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('doimage', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('dobr', XOBJ_DTYPE_BOOL, '0', true);
+	}
+}
+
+class BaseCommentHandler extends XoopsObjectGenericHandler
+{
+	var $mTable = "xoopscomments";
+	var $mPrimary = "com_id";
+	var $mClass = "BaseCommentObject";
+}
+
+?>
Index: xoops2jp/html/modules/base/class/PageNavigator.class.php
diff -u /dev/null xoops2jp/html/modules/base/class/PageNavigator.class.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:18:11 2006
+++ xoops2jp/html/modules/base/class/PageNavigator.class.php	Thu Jan 26 01:18:11 2006
@@ -0,0 +1,35 @@
+<?php
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_PageNavigator.class.php";
+
+class Legacy_PageNavigator extends XCube_PageNavigator
+{
+	function getRenderSortUrl()
+	{
+		return parent::renderSortUrl('sort');
+	}
+
+	function renderHidden($sort = null)
+	{
+		if ($mask == null) {
+			$mask = array();
+		}
+		elseif (!is_array($mask)) {
+			$mask = array($mask);
+		}
+	
+		$ret = null;
+	
+		foreach ($this->mExtra as $key => $value) {
+		}
+	
+		if (!isset($mask[$key])) {
+			$value = htmlspecialchars($value, ENT_QUOTES);
+			$ret .= "<input type=\"hidden\" name=\"${key}\" value=\"${value}\" />";
+		}
+	
+		return $ret;
+	}
+}
+
+?>


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