[xoops-cvslog 1334] CVS update: xoops2jp/html/modules/user/admin/forms

Back to archive index

Minahito minah****@users*****
2005年 12月 22日 (木) 20:26:12 JST


Index: xoops2jp/html/modules/user/admin/forms/GroupEditForm.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/forms/GroupEditForm.class.php:1.1.2.1
--- /dev/null	Thu Dec 22 20:26:12 2005
+++ xoops2jp/html/modules/user/admin/forms/GroupEditForm.class.php	Thu Dec 22 20:26:12 2005
@@ -0,0 +1,42 @@
+<?php
+
+require_once XOOPS_ROOT_PATH."/class/XCube_ActionForm.class.php";
+
+/**
+ * This class is generated by makeActionForm tool.
+ * @auchor makeActionForm
+ */
+class User_GroupEditForm extends XCube_ActionForm 
+{
+	function prepare()
+	{
+		// set properties
+		$this->mFormProperties['groupid']=new XCube_IntProperty('groupid');
+		$this->mFormProperties['name']=new XCube_StringProperty('name');
+		$this->mFormProperties['description']=new XCube_TextProperty('description');
+
+		// set fields
+		$this->mFieldProperties['name']=new XCube_FieldProperty($this);
+		$this->mFieldProperties['name']->setDependsByArray(array('required','maxlength'));
+		$this->mFieldProperties['name']->addMessage("required",_MD_A_USER_ERROR_REQUIRED,_MD_A_USER_LANG_NAME,"100");
+		$this->mFieldProperties['name']->addMessage("maxlength",_MD_A_USER_ERROR_MAXLENGTH,_MD_A_USER_LANG_NAME,"100");
+		$this->mFieldProperties['name']->addVar("maxlength",100);
+
+	}
+
+	function load(&$group)
+	{
+		$this->setVar('groupid', $group->getVar('groupid'));
+		$this->setVar('name', $group->getVar('name'));
+		$this->setVar('description', $group->getVar('description'));
+	}
+
+	function update(&$group)
+	{
+		$group->setVar('groupid', $this->getVar('groupid'));
+		$group->setVar('name', $this->getVar('name'));
+		$group->setVar('description', $this->getVar('description'));
+	}
+}
+
+?>


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