summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls')
-rw-r--r--framework/Web/UI/ActiveControls/IActiveControl.php29
-rw-r--r--framework/Web/UI/ActiveControls/ICallbackEventHandler.php33
-rw-r--r--framework/Web/UI/ActiveControls/TAutoCompleteTemplate.php2
-rw-r--r--framework/Web/UI/ActiveControls/TBaseActiveControl.php2
-rw-r--r--framework/Web/UI/ActiveControls/TCallbackClientScript.php2
-rw-r--r--framework/Web/UI/ActiveControls/TCallbackEventParameter.php2
-rw-r--r--framework/Web/UI/ActiveControls/TDropContainerEventParameter.php2
7 files changed, 67 insertions, 5 deletions
diff --git a/framework/Web/UI/ActiveControls/IActiveControl.php b/framework/Web/UI/ActiveControls/IActiveControl.php
new file mode 100644
index 00000000..a3c8e72d
--- /dev/null
+++ b/framework/Web/UI/ActiveControls/IActiveControl.php
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Core interfaces essential for TApplication class.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2014 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @package Prado\Web\UI\ActiveControls
+ */
+
+namespace Prado\Web\UI\ActiveControls;
+
+/**
+ * IActiveControl interface.
+ *
+ * Active controls must implement IActiveControl interface.
+ *
+ * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
+ * @package Prado\Web\UI\ActiveControls
+ * @since 3.1
+ */
+interface IActiveControl
+{
+ /**
+ * @return TBaseActiveControl Active control properties.
+ */
+ public function getActiveControl();
+} \ No newline at end of file
diff --git a/framework/Web/UI/ActiveControls/ICallbackEventHandler.php b/framework/Web/UI/ActiveControls/ICallbackEventHandler.php
new file mode 100644
index 00000000..2abe1225
--- /dev/null
+++ b/framework/Web/UI/ActiveControls/ICallbackEventHandler.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Core interfaces essential for TApplication class.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2014 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @package Prado\Web\UI\ActiveControls
+ */
+
+namespace Prado\Web\UI\ActiveControls;
+
+/**
+ * ICallbackEventHandler interface.
+ *
+ * If a control wants to respond to callback event, it must implement this
+ * interface.
+ *
+ * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
+ * @package Prado\Web\UI\ActiveControls
+ * @since 3.1
+ */
+interface ICallbackEventHandler
+{
+ /**
+ * Raises callback event. The implementation of this function should raise
+ * appropriate event(s) (e.g. OnClick, OnCommand) indicating the component
+ * is responsible for the callback event.
+ * @param TCallbackEventParameter the parameter associated with the callback event
+ */
+ public function raiseCallbackEvent($eventArgument);
+} \ No newline at end of file
diff --git a/framework/Web/UI/ActiveControls/TAutoCompleteTemplate.php b/framework/Web/UI/ActiveControls/TAutoCompleteTemplate.php
index 0cdcbb85..246bfaf3 100644
--- a/framework/Web/UI/ActiveControls/TAutoCompleteTemplate.php
+++ b/framework/Web/UI/ActiveControls/TAutoCompleteTemplate.php
@@ -21,7 +21,7 @@ namespace Prado\Web\UI\ActiveControls;
* @package Prado\Web\UI\ActiveControls
* @since 3.1
*/
-class TAutoCompleteTemplate extends TComponent implements ITemplate
+class TAutoCompleteTemplate extends \Prado\TComponent implements ITemplate
{
private $_template;
diff --git a/framework/Web/UI/ActiveControls/TBaseActiveControl.php b/framework/Web/UI/ActiveControls/TBaseActiveControl.php
index 4af7ac2c..74adecc2 100644
--- a/framework/Web/UI/ActiveControls/TBaseActiveControl.php
+++ b/framework/Web/UI/ActiveControls/TBaseActiveControl.php
@@ -27,7 +27,7 @@ Prado::using('System.Web.UI.ActiveControls.TCallbackClientSide');
* @package Prado\Web\UI\ActiveControls
* @since 3.1
*/
-class TBaseActiveControl extends TComponent
+class TBaseActiveControl extends \Prado\TComponent
{
/**
* @var TMap map of active control options.
diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
index 812c9b2a..e8656792 100644
--- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php
+++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
@@ -58,7 +58,7 @@ namespace Prado\Web\UI\ActiveControls;
* @package Prado\Web\UI\ActiveControls
* @since 3.1
*/
-class TCallbackClientScript extends TApplicationComponent
+class TCallbackClientScript extends \Prado\TApplicationComponent
{
/**
* @var TList list of client functions to execute.
diff --git a/framework/Web/UI/ActiveControls/TCallbackEventParameter.php b/framework/Web/UI/ActiveControls/TCallbackEventParameter.php
index 612fccbd..515051fb 100644
--- a/framework/Web/UI/ActiveControls/TCallbackEventParameter.php
+++ b/framework/Web/UI/ActiveControls/TCallbackEventParameter.php
@@ -32,7 +32,7 @@ namespace Prado\Web\UI\ActiveControls;
* @package Prado\Web\UI\ActiveControls
* @since 3.1
*/
-class TCallbackEventParameter extends TEventParameter
+class TCallbackEventParameter extends \Prado\TEventParameter
{
/**
* @var THttpResponse output content.
diff --git a/framework/Web/UI/ActiveControls/TDropContainerEventParameter.php b/framework/Web/UI/ActiveControls/TDropContainerEventParameter.php
index 2c5876c3..5844e3cd 100644
--- a/framework/Web/UI/ActiveControls/TDropContainerEventParameter.php
+++ b/framework/Web/UI/ActiveControls/TDropContainerEventParameter.php
@@ -22,7 +22,7 @@ namespace Prado\Web\UI\ActiveControls;
* @license http://www.pradosoft.com/license
* @package Prado\Web\UI\ActiveControls
*/
-class TDropContainerEventParameter extends TEventParameter
+class TDropContainerEventParameter extends \Prado\TEventParameter
{
private $_dragElementId;
private $_screenX;