diff options
author | xue <> | 2006-02-08 23:18:20 +0000 |
---|---|---|
committer | xue <> | 2006-02-08 23:18:20 +0000 |
commit | aa46c9ab78abdd23c273c5e49b402a87a2aefcdb (patch) | |
tree | 9bb054b662ff59d86736d6cee6eb0f4b1b57ba59 /framework/Web/UI/TControl.php | |
parent | 682d48577ae6e0118a11e5e6134fdbbb6048456d (diff) |
Changed accessibility of a few render-related methods (needed by adapters).
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r-- | framework/Web/UI/TControl.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 5c959b7f..80956312 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -620,7 +620,7 @@ class TControl extends TComponent * @param mixed the default value. If $key is not found in viewstate, $defaultValue will be returned
* @return mixed the viewstate value corresponding to $key
*/
- protected function getViewState($key,$defaultValue=null)
+ public function getViewState($key,$defaultValue=null)
{
return isset($this->_viewState[$key])?$this->_viewState[$key]:$defaultValue;
}
@@ -635,7 +635,7 @@ class TControl extends TComponent * @param mixed the viewstate value to be set
* @param mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate.
*/
- protected function setViewState($key,$value,$defaultValue=null)
+ public function setViewState($key,$value,$defaultValue=null)
{
if($value===$defaultValue)
unset($this->_viewState[$key]);
@@ -647,7 +647,7 @@ class TControl extends TComponent * Clears a viewstate value.
* @param string the name of the viewstate value to be cleared
*/
- protected function clearViewState($key)
+ public function clearViewState($key)
{
unset($this->_viewState[$key]);
}
@@ -1225,7 +1225,7 @@ class TControl extends TComponent * Only when the control is visible will the control be rendered.
* @param THtmlWriter the writer used for the rendering purpose
*/
- protected function renderControl($writer)
+ public function renderControl($writer)
{
if($this->getVisible(false))
$this->render($writer);
@@ -1238,7 +1238,7 @@ class TControl extends TComponent * By default, the control simply renders all its child contents.
* @param THtmlWriter the writer used for the rendering purpose
*/
- protected function render($writer)
+ public function render($writer)
{
$this->renderChildren($writer);
}
@@ -1249,7 +1249,7 @@ class TControl extends TComponent * and renders them in order.
* @param THtmlWriter the writer used for the rendering purpose
*/
- protected function renderChildren($writer)
+ public function renderChildren($writer)
{
if($this->getHasControls())
{
|