diff options
author | xue <> | 2006-04-09 01:50:08 +0000 |
---|---|---|
committer | xue <> | 2006-04-09 01:50:08 +0000 |
commit | d8122a0f98137822b0ea20f7602d105fcb2fe962 (patch) | |
tree | 7cd4b748842c1bf23a5da770d082f84267d4de24 /framework/Web/UI/TControl.php | |
parent | c370ddb843c418f550879c2edc0aac0fe90a1b2d (diff) |
Fixed a few bugs in TOutputCache. Documentation for TOutputCache is completed.
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r-- | framework/Web/UI/TControl.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 3c3c7060..f5f77513 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -1446,7 +1446,8 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable /**
* Loads state (viewstate and controlstate) into a control and its children.
- * @param TMap the collection of the state
+ * This method should only be used by framework developers.
+ * @param array the collection of the state
* @param boolean whether the viewstate should be loaded
*/
protected function loadStateRecursive(&$state,$needViewState=true)
@@ -1502,6 +1503,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable /**
* Saves all control state (viewstate and controlstate) as a collection.
+ * This method should only be used by framework developers.
* @param boolean whether the viewstate should be saved
* @return array the collection of the control state (including its children's state).
*/
@@ -1718,6 +1720,18 @@ class TEmptyControlCollection extends TControlCollection {
parent::__construct($owner,true);
}
+
+ /**
+ * Inserts an item at the specified position.
+ * This overrides the parent implementation by ignoring new addition.
+ * @param integer the speicified position.
+ * @param mixed new item
+ */
+ public function insertAt($index,$item)
+ {
+ if(!is_string($item)) // string is possible if property tag is used. we simply ignore it in this case
+ parent::insertAt($index,$item); // this will generate an exception in parent implementation
+ }
}
/**
|