summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/LTemplate.php
diff options
context:
space:
mode:
authorwei <>2006-09-23 01:08:19 +0000
committerwei <>2006-09-23 01:08:19 +0000
commit9af56fd93ed071d86f14296cec618073f6c0941a (patch)
tree439b2ba2a89b79bbbd0ce95ad904bd5335c7a700 /tests/FunctionalTests/active-controls/protected/pages/LTemplate.php
parent0ccf3763474a18b72b6a166399fc1cf569b867f8 (diff)
Fixed #383
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/LTemplate.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/LTemplate.php72
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/LTemplate.php b/tests/FunctionalTests/active-controls/protected/pages/LTemplate.php
new file mode 100644
index 00000000..0a5c311e
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/LTemplate.php
@@ -0,0 +1,72 @@
+<?php
+
+
+/**
+ * class file.
+ *
+ * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
+ * @copyright 2005, diemeisterei GmbH. All rights reserved.
+ * @author $Author: tobias $
+ * @version $Revision: 1.5 $ $Date: 2006/01/03 19:08:05 $
+ * @package Lithron
+ * @subpackage none
+ */
+
+/**
+ *
+ *
+ * @package Lithron
+ * @subpackage none
+ */
+
+class LTemplate extends TTemplateControl
+{
+ function __construct()
+ {
+ parent::__construct();
+ $this->setEnableViewState(false);
+ }
+
+ function setSize($value)
+ {
+ $this->setViewState("Size", $value);
+ }
+
+ function getSize()
+ {
+ return $this->getViewState("Size", "Small");
+ }
+
+ function onInit($param)
+ {
+ parent :: onInit($param);
+ $this->Controls[] = "OnInit";
+ }
+
+ function onLoad($param)
+ {
+ parent :: onLoad($param);
+ $this->Controls[] = "OnLoad";
+ $this->adjustLayout();
+ }
+
+ function onPreRender($param)
+ {
+ parent :: onPreRender($param);
+ $this->Controls[] = "OnPreRender";
+ }
+
+ function adjustLayout()
+ {
+ if ($this->getSize() == "Large")
+ {
+ $this->Small->setVisible(false);
+ }
+ else
+ {
+ $this->Large->setVisible(false);
+ }
+ }
+
+}
+?> \ No newline at end of file