[xoops-cvslog 2593] CVS update: xoops2jp/html/modules/base/admin/forms

Back to archive index

Minahito minah****@users*****
2006年 3月 30日 (木) 18:11:37 JST


Index: xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php
diff -u xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.4
--- xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.3	Tue Mar 28 22:29:05 2006
+++ xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php	Thu Mar 30 18:11:37 2006
@@ -21,7 +21,7 @@
 		$this->mFormProperties['com_title'] =& new XCube_StringProperty('com_title');
 		$this->mFormProperties['com_text'] =& new XCube_TextProperty('com_text');
 		$this->mFormProperties['com_sig'] =& new XCube_BoolProperty('com_sig');
-		$this->mFormProperties['com_status'] =& new XCube_BoolProperty('com_status');
+		$this->mFormProperties['com_status'] =& new XCube_IntProperty('com_status');
 		$this->mFormProperties['dohtml'] =& new XCube_BoolProperty('dohtml');
 		$this->mFormProperties['dosmiley'] =& new XCube_BoolProperty('dosmiley');
 		$this->mFormProperties['doxcode'] =& new XCube_BoolProperty('doxcode');
@@ -50,6 +50,13 @@
 		$this->mFieldProperties['com_text'] =& new XCube_FieldProperty($this);
 		$this->mFieldProperties['com_text']->setDependsByArray(array('required'));
 		$this->mFieldProperties['com_text']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_TEXT);
+
+		$this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange'));
+		$this->mFieldProperties['com_status']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS);
+		$this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS);
+		$this->mFieldProperties['com_status']->addVar('min', '1');
+		$this->mFieldProperties['com_status']->addVar('max', '3');
 	}
 
 	function load(&$obj)


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