cvs: pear /HTML_QuickForm_Livesearch package.xml /HTML_QuickForm_Livesearch/example myfunction.php
| From: | Giuseppe Dess� | Date: | Fri, 23 Jun 2006 10:08:50 +0000 |
| Subject: | cvs: pear /HTML_QuickForm_Livesearch package.xml /HTML_QuickForm_Livesearch/example myfunction.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40875@lists.php.net to get a copy of this message | ||
thesee Fri Jun 23 10:08:50 2006 UTC
Modified files:
/pear/HTML_QuickForm_Livesearch package.xml
/pear/HTML_QuickForm_Livesearch/example myfunction.php
Log:
update myfunction example to work with php4
http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm_Livesearch/package.xml?r1=1.5&r2=1.6&diff_format=u
Index: pear/HTML_QuickForm_Livesearch/package.xml
diff -u pear/HTML_QuickForm_Livesearch/package.xml:1.5
pear/HTML_QuickForm_Livesearch/package.xml:1.6
--- pear/HTML_QuickForm_Livesearch/package.xml:1.5 Thu May 25 09:24:41 2006
+++ pear/HTML_QuickForm_Livesearch/package.xml Fri Jun 23 10:08:50 2006
@@ -16,16 +16,13 @@
</maintainer>
</maintainers>
<release>
- <version>0.2.0</version>
- <date>2006-05-25</date>
+ <version>0.3.0</version>
+ <date>2006-06-23</date>
<license>PHP License 3.0</license>
<state>beta</state>
<notes>
Changes:
-Single quote issue on liveform variable
-Added attributes on example.
-Style coding issue
-The id value is not reset when the keypressed is left or right arrow
+Solved bug with frozen element.
* todo: Do not reset the value when the key is a button that do not alter the text.
* todo: Set up the options of an alternative element when jscript disabled
</notes>
@@ -75,6 +72,21 @@
</release>
<changelog>
<release>
+ <version>0.2.0</version>
+ <date>2006-05-25</date>
+ <license>PHP License 3.0</license>
+ <state>beta</state>
+ <notes>
+Changes:
+Single quote issue on liveform variable
+Added attributes on example.
+Style coding issue
+The id value is not reset when the keypressed is left or right arrow
+* todo: Do not reset the value when the key is a button that do not alter the text.
+* todo: Set up the options of an alternative element when jscript disabled
+ </notes>
+ </release>
+ <release>
<version>0.1.5</version>
<date>2006-04-04</date>
<license>PHP License 3.0</license>
http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm_Livesearch/example/myfunction.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/HTML_QuickForm_Livesearch/example/myfunction.php
diff -u pear/HTML_QuickForm_Livesearch/example/myfunction.php:1.3
pear/HTML_QuickForm_Livesearch/example/myfunction.php:1.4
--- pear/HTML_QuickForm_Livesearch/example/myfunction.php:1.3 Fri Jun 23 09:54:23 2006
+++ pear/HTML_QuickForm_Livesearch/example/myfunction.php Fri Jun 23 10:08:50 2006
@@ -1,34 +1,30 @@
<?php
-// $Id: myfunction.php,v 1.3 2006/06/23 09:54:23 thesee Exp $
+// $Id: myfunction.php,v 1.4 2006/06/23 10:08:50 thesee Exp $
class Test
{
- var $livesearch = array();
- var $livesearch2 = array();
- function Test() {
- $this->livesearch2 = array(
- 1 => 'Orange-2',
- 2 => 'Apple-2',
- 3 => 'Pear-2',
- 4 => 'Banana-2',
- 5 => 'Blueberry-2'
- );
- $this->livesearch = array(
+ function getTestName($dbh, $id) {
+ $livesearch = array(
1 => 'Orange',
2 => 'Apple',
3 => 'Pear',
4 => 'Banana',
5 => 'Blueberry'
);
- }
- function getTestName($dbh, $id) {
if ($id > 0) {
- return $this->livesearch[$id];
+ return $livesearch[$id];
}
}
function getTestName2($dbh, $id) {
+ $livesearch = array(
+ 1 => 'Orange-2',
+ 2 => 'Apple-2',
+ 3 => 'Pear-2',
+ 4 => 'Banana-2',
+ 5 => 'Blueberry-2'
+ );
if ($id > 0) {
- return $this->livesearch2[$id];
+ return $livesearch2[$id];
}
}
}