Author: danydb
Date: 2011-09-16 23:58:49 +0200 (Fri, 16 Sep 2011)
New Revision: 4202
Modified:
phpcompta/branches/rel560/include/class_icheckbox.php
Log:
new fct set_checked
Modified: phpcompta/branches/rel560/include/class_icheckbox.php
===================================================================
--- phpcompta/branches/rel560/include/class_icheckbox.php 2011-09-15
10:17:44 UTC (rev 4201)
+++ phpcompta/branches/rel560/include/class_icheckbox.php 2011-09-16
21:58:49 UTC (rev 4202)
@@ -55,6 +55,14 @@
return $r;
}
+ /**
+ *set selected to true (checked) if the value equal the parameter
+ * @param $p_value value to compare
+ */
+ public function set_check($p_value)
+ {
+ if ($this->value==$p_value)$this->selected=true;
+ }
static public function test_me()
{
}
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev