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

Back to archive index

Minahito minah****@users*****
2006年 4月 25日 (火) 14:16:28 JST


Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishAdminEditForm.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishAdminEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishAdminEditForm.class.php:removed
--- xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishAdminEditForm.class.php:1.1.2.1	Mon Apr 24 16:30:22 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishAdminEditForm.class.php	Tue Apr 25 14:16:27 2006
@@ -1,79 +0,0 @@
-<?php
-
-if (!defined('XOOPS_ROOT_PATH')) exit();
-
-require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
-require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php";
-
-class LegacyRender_BannerfinishAdminEditForm extends XCube_ActionForm
-{
-	function getTokenName()
-	{
-		return "module.legacyRender.BannerfinishAdminEditForm.TOKEN";
-	}
-
-	function prepare()
-	{
-		//
-		// Set form properties
-		//
-		$this->mFormProperties['bid'] =& new XCube_IntProperty('bid');
-		$this->mFormProperties['cid'] =& new XCube_IntProperty('cid');
-		$this->mFormProperties['impressions'] =& new XCube_IntProperty('impressions');
-		$this->mFormProperties['clicks'] =& new XCube_IntProperty('clicks');
-		$this->mFormProperties['datestart'] =& new XCube_IntProperty('datestart');
-		$this->mFormProperties['dateend'] =& new XCube_IntProperty('dateend');
-	
-		//
-		// Set field properties
-		//
-	
-		$this->mFieldProperties['bid'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['bid']->setDependsByArray(array('required'));
-		$this->mFieldProperties['bid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_BID);
-	
-		$this->mFieldProperties['cid'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['cid']->setDependsByArray(array('required','objectExsist'));
-		$this->mFieldProperties['cid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_CID);
-		$this->mFieldProperties['cid']->addMessage('objectExist', _AD_LEGACYRENDER_ERROR_OBJECT_EXIST, _AD_LEGACYRENDER_LANG_CID);
-		$this->mFieldProperties['cid']->addVar('handler', 'bannerclient');
-	
-		$this->mFieldProperties['impressions'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['impressions']->setDependsByArray(array('required'));
-		$this->mFieldProperties['impressions']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_IMPRESSIONS);
-	
-		$this->mFieldProperties['clicks'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['clicks']->setDependsByArray(array('required'));
-		$this->mFieldProperties['clicks']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_CLICKS);
-	
-		$this->mFieldProperties['datestart'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['datestart']->setDependsByArray(array('required'));
-		$this->mFieldProperties['datestart']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_DATESTART);
-	
-		$this->mFieldProperties['dateend'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['dateend']->setDependsByArray(array('required'));
-		$this->mFieldProperties['dateend']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_DATEEND);
-	}
-
-	function load(&$obj)
-	{
-		$this->set('bid', $obj->get('bid'));
-		$this->set('cid', $obj->get('cid'));
-		$this->set('impressions', $obj->get('impressions'));
-		$this->set('clicks', $obj->get('clicks'));
-		$this->set('datestart', $obj->get('datestart'));
-		$this->set('dateend', $obj->get('dateend'));
-	}
-
-	function update(&$obj)
-	{
-		$obj->set('bid', $this->get('bid'));
-		$obj->set('cid', $this->get('cid'));
-		$obj->set('impressions', $this->get('impressions'));
-		$obj->set('clicks', $this->get('clicks'));
-		$obj->set('datestart', $this->get('datestart'));
-		$obj->set('dateend', $this->get('dateend'));
-	}
-}
-
-?>


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