diff options
author | xue <> | 2005-11-26 17:35:40 +0000 |
---|---|---|
committer | xue <> | 2005-11-26 17:35:40 +0000 |
commit | f85d1a050dbacfc71c7c619df7b7eb792c89d8ee (patch) | |
tree | ed60f90732748e6f82c2f112e7dc7d156b79be87 /framework/Web/UI/WebControls/TImage.php | |
parent | 33edf4e00ca2411a7849e6b479048c25c4a3ce6c (diff) |
Diffstat (limited to 'framework/Web/UI/WebControls/TImage.php')
-rw-r--r-- | framework/Web/UI/WebControls/TImage.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TImage.php b/framework/Web/UI/WebControls/TImage.php index dd0387a5..452bae4e 100644 --- a/framework/Web/UI/WebControls/TImage.php +++ b/framework/Web/UI/WebControls/TImage.php @@ -36,6 +36,17 @@ class TImage extends TWebControl }
/**
+ * Processes an object that is created during parsing template.
+ * This method overrides the parent implementation by forbidding any child controls.
+ * @param string|TComponent text string or component parsed and instantiated in template
+ */
+ public function addParsedObject($object)
+ {
+ if($object instanceof TComponent)
+ throw new TConfigurationException('image_body_forbidden');
+ }
+
+ /**
* Adds attributes related to an HTML image element to renderer.
* @param THtmlWriter the writer used for the rendering purpose
*/
|