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

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 1月 14日 (土) 14:31:53 JST


Index: xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php
diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php:1.1.2.1
--- /dev/null	Sat Jan 14 14:31:53 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php	Sat Jan 14 14:31:53 2006
@@ -0,0 +1,54 @@
+<?php
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
+
+/**
+ * This class is generated by makeActionForm tool.
+ */
+class ThemeSelectForm extends XCube_ActionForm
+{
+	function getTokenName()
+	{
+		return "module.legacyRender.ThemeSelectForm.TOKEN";
+	}
+
+	function prepare()
+	{
+		//
+		// Set form properties
+		//
+		$this->mFormProperties['select'] =& new XCube_BoolArrayProperty('select');
+		$this->mFormProperties['choose'] =& new XCube_StringArrayProperty('choose');
+	}
+
+	/**
+	 * @access public
+	 */
+	function getChooseTheme()
+	{
+		$ret = array();
+
+		$themes = $this->get('choose');
+		foreach ($themes as $theme => $dmy) {
+			return $theme;
+		}
+		
+		return null;
+	}
+	
+	function load(&$objs)
+	{
+		foreach ($objs as $obj) {
+			$this->set('select', $obj->get('id'), $obj->get('enable_select'));
+		}
+	}
+
+	function update(&$objs)
+	{
+		foreach (array_keys($objs) as $key) {
+			$objs[$key]->set('enable_select', $this->get('select', $objs[$key]->get('id')));
+		}
+	}
+}
+
+?>


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index