summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TControlAdapter.php
diff options
context:
space:
mode:
authorctrlaltca <>2012-07-12 11:21:01 +0000
committerctrlaltca <>2012-07-12 11:21:01 +0000
commit903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch)
treee08bf04f0823650a231227ac3499121270172a23 /framework/Web/UI/TControlAdapter.php
parent3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff)
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'framework/Web/UI/TControlAdapter.php')
-rw-r--r--framework/Web/UI/TControlAdapter.php286
1 files changed, 143 insertions, 143 deletions
diff --git a/framework/Web/UI/TControlAdapter.php b/framework/Web/UI/TControlAdapter.php
index 5f06c360..a1afd353 100644
--- a/framework/Web/UI/TControlAdapter.php
+++ b/framework/Web/UI/TControlAdapter.php
@@ -1,143 +1,143 @@
-<?php
-/**
- * TControlAdapter class file.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2012 PradoSoft
- * @license http://www.pradosoft.com/license/
- * @version $Id$
- * @package System.Web.UI
- */
-
-/**
- * TControlAdapter class
- *
- * TControlAdapter is the base class for adapters that customize
- * various behaviors for the control to which the adapter is attached.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @version $Id$
- * @package System.Web.UI
- * @since 3.0
- */
-class TControlAdapter extends TApplicationComponent
-{
- /**
- * @var TControl the control to which the adapter is attached
- */
- protected $_control;
-
- /**
- * Constructor.
- * @param TControl the control to which the adapter is attached
- */
- public function __construct($control)
- {
- $this->_control=$control;
- }
-
- /**
- * @return TControl the control to which this adapter is attached
- */
- public function getControl()
- {
- return $this->_control;
- }
-
- /**
- * @return TPage the page that contains the attached control
- */
- public function getPage()
- {
- return $this->_control?$this->_control->getPage():null;
- }
-
- /**
- * Creates child controls for the attached control.
- * Default implementation calls the attached control's corresponding method.
- */
- public function createChildControls()
- {
- $this->_control->createChildControls();
- }
-
- /**
- * Loads additional persistent control state.
- * Default implementation calls the attached control's corresponding method.
- */
- public function loadState()
- {
- $this->_control->loadState();
- }
-
- /**
- * Saves additional persistent control state.
- * Default implementation calls the attached control's corresponding method.
- */
- public function saveState()
- {
- $this->_control->saveState();
- }
-
- /**
- * This method is invoked when the control enters 'OnInit' stage.
- * Default implementation calls the attached control's corresponding method.
- * @param TEventParameter event parameter to be passed to the event handlers
- */
- public function onInit($param)
- {
- $this->_control->onInit($param);
- }
-
- /**
- * This method is invoked when the control enters 'OnLoad' stage.
- * Default implementation calls the attached control's corresponding method.
- * @param TEventParameter event parameter to be passed to the event handlers
- */
- public function onLoad($param)
- {
- $this->_control->onLoad($param);
- }
-
- /**
- * This method is invoked when the control enters 'OnPreRender' stage.
- * Default implementation calls the attached control's corresponding method.
- * @param TEventParameter event parameter to be passed to the event handlers
- */
- public function onPreRender($param)
- {
- $this->_control->onPreRender($param);
- }
-
- /**
- * This method is invoked when the control enters 'OnUnload' stage.
- * Default implementation calls the attached control's corresponding method.
- * @param TEventParameter event parameter to be passed to the event handlers
- */
- public function onUnload($param)
- {
- $this->_control->onUnload($param);
- }
-
- /**
- * This method is invoked when the control renders itself.
- * Default implementation calls the attached control's corresponding method.
- * @param THtmlWriter writer for the rendering purpose
- */
- public function render($writer)
- {
- $this->_control->render($writer);
- }
-
- /**
- * Renders the control's children.
- * Default implementation calls the attached control's corresponding method.
- * @param THtmlWriter writer for the rendering purpose
- */
- public function renderChildren($writer)
- {
- $this->_control->renderChildren($writer);
- }
-}
-
+<?php
+/**
+ * TControlAdapter class file.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2012 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id$
+ * @package System.Web.UI
+ */
+
+/**
+ * TControlAdapter class
+ *
+ * TControlAdapter is the base class for adapters that customize
+ * various behaviors for the control to which the adapter is attached.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @version $Id$
+ * @package System.Web.UI
+ * @since 3.0
+ */
+class TControlAdapter extends TApplicationComponent
+{
+ /**
+ * @var TControl the control to which the adapter is attached
+ */
+ protected $_control;
+
+ /**
+ * Constructor.
+ * @param TControl the control to which the adapter is attached
+ */
+ public function __construct($control)
+ {
+ $this->_control=$control;
+ }
+
+ /**
+ * @return TControl the control to which this adapter is attached
+ */
+ public function getControl()
+ {
+ return $this->_control;
+ }
+
+ /**
+ * @return TPage the page that contains the attached control
+ */
+ public function getPage()
+ {
+ return $this->_control?$this->_control->getPage():null;
+ }
+
+ /**
+ * Creates child controls for the attached control.
+ * Default implementation calls the attached control's corresponding method.
+ */
+ public function createChildControls()
+ {
+ $this->_control->createChildControls();
+ }
+
+ /**
+ * Loads additional persistent control state.
+ * Default implementation calls the attached control's corresponding method.
+ */
+ public function loadState()
+ {
+ $this->_control->loadState();
+ }
+
+ /**
+ * Saves additional persistent control state.
+ * Default implementation calls the attached control's corresponding method.
+ */
+ public function saveState()
+ {
+ $this->_control->saveState();
+ }
+
+ /**
+ * This method is invoked when the control enters 'OnInit' stage.
+ * Default implementation calls the attached control's corresponding method.
+ * @param TEventParameter event parameter to be passed to the event handlers
+ */
+ public function onInit($param)
+ {
+ $this->_control->onInit($param);
+ }
+
+ /**
+ * This method is invoked when the control enters 'OnLoad' stage.
+ * Default implementation calls the attached control's corresponding method.
+ * @param TEventParameter event parameter to be passed to the event handlers
+ */
+ public function onLoad($param)
+ {
+ $this->_control->onLoad($param);
+ }
+
+ /**
+ * This method is invoked when the control enters 'OnPreRender' stage.
+ * Default implementation calls the attached control's corresponding method.
+ * @param TEventParameter event parameter to be passed to the event handlers
+ */
+ public function onPreRender($param)
+ {
+ $this->_control->onPreRender($param);
+ }
+
+ /**
+ * This method is invoked when the control enters 'OnUnload' stage.
+ * Default implementation calls the attached control's corresponding method.
+ * @param TEventParameter event parameter to be passed to the event handlers
+ */
+ public function onUnload($param)
+ {
+ $this->_control->onUnload($param);
+ }
+
+ /**
+ * This method is invoked when the control renders itself.
+ * Default implementation calls the attached control's corresponding method.
+ * @param THtmlWriter writer for the rendering purpose
+ */
+ public function render($writer)
+ {
+ $this->_control->render($writer);
+ }
+
+ /**
+ * Renders the control's children.
+ * Default implementation calls the attached control's corresponding method.
+ * @param THtmlWriter writer for the rendering purpose
+ */
+ public function renderChildren($writer)
+ {
+ $this->_control->renderChildren($writer);
+ }
+}
+