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

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 1月 18日 (水) 22:09:51 JST


Index: xoops2jp/html/modules/user/forms/AvatarUploadForm.class.php
diff -u /dev/null xoops2jp/html/modules/user/forms/AvatarUploadForm.class.php:1.1.2.1
--- /dev/null	Wed Jan 18 22:09:51 2006
+++ xoops2jp/html/modules/user/forms/AvatarUploadForm.class.php	Wed Jan 18 22:09:51 2006
@@ -0,0 +1,42 @@
+<?php
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
+
+/**
+ * This class is generated by makeActionForm tool.
+ */
+class AvatarUploadForm extends XCube_ActionForm
+{
+	function getTokenName()
+	{
+		return "module.user.AvatarUploadForm.TOKEN";
+	}
+
+	function prepare()
+	{
+		//
+		// Set form properties
+		//
+		$this->mFormProperties['uploadavatar'] =& new XCube_ImageFileProperty('uploadavatar');
+
+		//
+		// Set field properties
+		//
+		$this->mFieldProperties['uploadavatar'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['uploadavatar']->setDependsByArray(array('extension'));
+		$this->mFieldProperties['uploadavatar']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL);
+		$this->mFieldProperties['uploadavatar']->addVar('extension', jpg,gif,png);
+	}
+
+	function load(&$obj)
+	{
+		$this->setVar('uploadavatar', $obj->get('uploadavatar'));
+	}
+
+	function update(&$obj)
+	{
+		$obj->setVar('uploadavatar', $this->get('uploadavatar'));
+	}
+}
+
+?>


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る