[xoops-cvslog 3394] CVS update: xoops2jp/html/class/xoopsform

Back to archive index

Minahito minah****@users*****
2006年 7月 1日 (土) 13:18:46 JST


Index: xoops2jp/html/class/xoopsform/formelement.php
diff -u xoops2jp/html/class/xoopsform/formelement.php:1.2.8.1 xoops2jp/html/class/xoopsform/formelement.php:1.2.8.2
--- xoops2jp/html/class/xoopsform/formelement.php:1.2.8.1	Wed Oct 19 02:18:33 2005
+++ xoops2jp/html/class/xoopsform/formelement.php	Sat Jul  1 13:18:46 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: formelement.php,v 1.2.8.1 2005/10/18 17:18:33 minahito Exp $
+// $Id: formelement.php,v 1.2.8.2 2006/07/01 04:18:46 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -100,6 +100,12 @@
 	 * @var	string
 	 */
 	var $_description = "";
+	
+	/**
+	 * specified id for the form.
+	 * @var string
+	 */
+	var $_id = null;
 	/**#@-*/
 
 
@@ -144,6 +150,21 @@
 	}
 
 	/**
+	 * Set $id to member property.
+	 * @param string $id
+	 */
+	function setId($id) {
+		$this->_id = $id;
+	}
+	
+	/**
+	 * get the "id" attribute for the element. If ID is empty, return getName().
+	 */
+	function getId() {
+		return $this->_id != null ? $this->_id : $this->getName();
+	}
+
+	/**
 	 * set the "accesskey" attribute for the element
 	 *
 	 * @param	string  $key   "accesskey" attribute for the element


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