summaryrefslogtreecommitdiff
path: root/framework/Web/UI/IRenderable.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/IRenderable.php')
-rw-r--r--framework/Web/UI/IRenderable.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/framework/Web/UI/IRenderable.php b/framework/Web/UI/IRenderable.php
new file mode 100644
index 00000000..2aeda744
--- /dev/null
+++ b/framework/Web/UI/IRenderable.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 Prado\Web\UI
+ */
+
+namespace Prado\Web\UI;
+
+/**
+ * IRenderable interface.
+ *
+ * This interface must be implemented by classes that can be rendered
+ * to end-users.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @package Prado\Web\UI
+ * @since 3.0
+ */
+interface IRenderable
+{
+ /**
+ * Renders the component to end-users.
+ * @param ITextWriter writer for the rendering purpose
+ */
+ public function render($writer);
+} \ No newline at end of file