summaryrefslogtreecommitdiff
path: root/framework/interfaces.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/interfaces.php')
-rw-r--r--framework/interfaces.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/framework/interfaces.php b/framework/interfaces.php
index f37325c8..48164dc0 100644
--- a/framework/interfaces.php
+++ b/framework/interfaces.php
@@ -322,4 +322,27 @@ interface ICallbackEventHandler
public function raiseCallbackEvent($eventArgument);
}
+/**
+ * IDataRenderer interface.
+ *
+ * If a control wants to be used a renderer for another data-bound control,
+ * this interface must be implemented.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @version $Id$
+ * @package System
+ * @since 3.1
+ */
+interface IDataRenderer
+{
+ /**
+ * @return mixed the data bound to this object
+ */
+ public function getData();
+
+ /**
+ * @param mixed the data to be bound to this object
+ */
+ public function setData($value);
+}
?> \ No newline at end of file