summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TInlineFrame.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TInlineFrame.php')
-rw-r--r--framework/Web/UI/WebControls/TInlineFrame.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TInlineFrame.php b/framework/Web/UI/WebControls/TInlineFrame.php
index c893f399..e0a57eca 100644
--- a/framework/Web/UI/WebControls/TInlineFrame.php
+++ b/framework/Web/UI/WebControls/TInlineFrame.php
@@ -31,7 +31,7 @@
* @package System.Web.UI.WebControls
* @since 3.0
*/
-class TInlineFrame extends TWebControl
+class TInlineFrame extends TWebControl implements IDataRenderer
{
/**
* @return string tag name of the iframe.
@@ -106,6 +106,32 @@ class TInlineFrame extends TWebControl
}
/**
+ * Returns the URL that this iframe will load content from
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link getFrameUrl()}.
+ * @return string the URL that this iframe will load content from
+ * @see getFrameUrl
+ * @since 3.1.0
+ */
+ public function getData()
+ {
+ return $this->getFrameUrl();
+ }
+
+ /**
+ * Sets the URL that this iframe will load content from.
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link setFrameUrl()}.
+ * @param string the URL that this iframe will load content from
+ * @see setFrameUrl
+ * @since 3.1.0
+ */
+ public function setData($value)
+ {
+ $this->setFrameUrl($value);
+ }
+
+ /**
* @return TInlineFrameScrollBars the visibility and position of scroll bars in an iframe. Defaults to TInlineFrameScrollBars::Auto.
*/
public function getScrollBars()