diff options
author | xue <> | 2006-01-01 21:28:57 +0000 |
---|---|---|
committer | xue <> | 2006-01-01 21:28:57 +0000 |
commit | f618592c07c32c4955367a4c5bf9c4e18727cefe (patch) | |
tree | 05fea8cc46f84307d41e30f61fd008b88435972c /framework/Web/UI/TControl.php | |
parent | c4ffe5fe2b3556f0fcbf6f7a28ef09ce24d06e74 (diff) |
Enhanced support to attribute access.
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r-- | framework/Web/UI/TControl.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 545bdf66..03d962f4 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -506,14 +506,14 @@ class TControl extends TComponent }
/**
- * @return string attribute value, '' if attribute does not exist
+ * @return string attribute value, null if attribute does not exist
*/
public function getAttribute($name)
{
if($attributes=$this->getViewState('Attributes',null))
return $attributes->itemAt($name);
else
- return '';
+ return null;
}
/**
@@ -528,14 +528,14 @@ class TControl extends TComponent /**
* Removes the named attribute.
* @param string the name of the attribute to be removed.
- * @return string attribute value removed, empty string if attribute does not exist.
+ * @return string attribute value removed, null if attribute does not exist.
*/
public function removeAttribute($name)
{
if($attributes=$this->getViewState('Attributes',null))
return $attributes->remove($name);
else
- return '';
+ return null;
}
/**
|