[xoops-cvslog 1766] CVS update: xoops2jp/html/modules/legacyRender/admin/forms

Back to archive index

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


Index: xoops2jp/html/modules/legacyRender/admin/forms/TplsetSelectForm.class.php
diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/forms/TplsetSelectForm.class.php:1.1.2.1
--- /dev/null	Sat Jan 14 22:20:36 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/TplsetSelectForm.class.php	Sat Jan 14 22:20:36 2006
@@ -0,0 +1,32 @@
+<?php
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
+
+/**
+ * This class is generated by makeActionForm tool.
+ */
+class TplsetSelectForm extends XCube_ActionForm
+{
+	function getTokenName()
+	{
+		return "module.legacyRender.TemplatesetSelectForm.TOKEN";
+	}
+
+	function prepare()
+	{
+		//
+		// Set form properties
+		//
+		$this->mFormProperties['tplset_name'] =& new XCube_StringProperty('tplset_name');
+	}
+
+	function validateTplset_name()
+	{
+		$handler =& xoops_getmodulehandler('tplset');
+		if ($handler->getCount(new Criteria('tplset_name', $this->get('tplset_name'))) == 0) {
+			$this->addErrorMessage(_AD_LEGACYRENDER_ERROR_TPLSET_NO_EXIST);
+		}
+	}
+}
+
+?>


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