summaryrefslogtreecommitdiff
path: root/framework/ICallbackEventHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/ICallbackEventHandler.php')
-rw-r--r--framework/ICallbackEventHandler.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/framework/ICallbackEventHandler.php b/framework/ICallbackEventHandler.php
new file mode 100644
index 00000000..3afb3674
--- /dev/null
+++ b/framework/ICallbackEventHandler.php
@@ -0,0 +1,31 @@
+<?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 System
+ */
+
+/**
+ * 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 System
+ * @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