summaryrefslogtreecommitdiff
path: root/framework/interfaces.php
diff options
context:
space:
mode:
authorwei <>2006-04-30 00:15:23 +0000
committerwei <>2006-04-30 00:15:23 +0000
commit10b65d6d03ee0afc1ec1a50f320af42a79f5492b (patch)
treed6b8167e0d224f21db6a16da251ba4d069468543 /framework/interfaces.php
parent2cc93773feb5e76d2dd002b1dcd463a01d606794 (diff)
Adding Callback foundations.
Diffstat (limited to 'framework/interfaces.php')
-rw-r--r--framework/interfaces.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/framework/interfaces.php b/framework/interfaces.php
index 2a407696..eb9084b3 100644
--- a/framework/interfaces.php
+++ b/framework/interfaces.php
@@ -280,4 +280,41 @@ interface IBindable
public function dataBind();
}
+/**
+ * IActiveControl interface.
+ *
+ * Active controls must implement IActiveControl interface.
+ *
+ * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
+ * @version $Revision: $ $Date: $
+ * @package System
+ * @since 3.0
+ */
+interface IActiveControl
+{
+
+}
+
+/**
+ * ICallbackEventHandler interface.
+ *
+ * If a control wants to respond to callback event, it must implement this
+ * interface.
+ *
+ * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
+ * @version $Revision: $ $Date: $
+ * @package System
+ * @since 3.0
+ */
+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