summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/classes/ccombobox.inc.php12
-rw-r--r--frontends/php/include/classes/ctag.inc.php12
2 files changed, 12 insertions, 12 deletions
diff --git a/frontends/php/include/classes/ccombobox.inc.php b/frontends/php/include/classes/ccombobox.inc.php
index cecb45c3..849f2e5a 100644
--- a/frontends/php/include/classes/ccombobox.inc.php
+++ b/frontends/php/include/classes/ccombobox.inc.php
@@ -44,18 +44,6 @@
}
return $this->error("Incorrect value for SetCaption [$value]");
}
- function SetEnable($value='yes')
- {
- if(is_null($value))
- return 0;
- elseif((is_string($value) && ($value == 'yes' || $value == 'enabled' || $value=='on'))
- || (is_int($value) && $value<>0))
- return $this->DelOption('disabled');
- elseif((is_string($value) && ($value == 'no' || $value == 'disabled' || $value=='off'))
- || (is_int($value) && $value==0))
- return $this->AddOption('disabled','disabled');
- return $this->error("Incorrect value for SetEnable [$value]");
- }
function SetSelected($value='yes')
{
if(is_null($value))
diff --git a/frontends/php/include/classes/ctag.inc.php b/frontends/php/include/classes/ctag.inc.php
index cf31f685..56de0559 100644
--- a/frontends/php/include/classes/ctag.inc.php
+++ b/frontends/php/include/classes/ctag.inc.php
@@ -180,6 +180,18 @@
print ($this->tag_end);
}
}
+ function SetEnable($value='yes')
+ {
+ if(is_null($value))
+ return 0;
+ elseif((is_string($value) && ($value == 'yes' || $value == 'enabled' || $value=='on'))
+ || (is_int($value) && $value<>0))
+ return $this->DelOption('disabled');
+ elseif((is_string($value) && ($value == 'no' || $value == 'disabled' || $value=='off'))
+ || (is_int($value) && $value==0))
+ return $this->AddOption('disabled','disabled');
+ return $this->error("Incorrect value for SetEnable [$value]");
+ }
function error($value)
{
error("class(".get_class($this).") - ".$value);