summaryrefslogtreecommitdiff
path: root/framework/TComponent.php
diff options
context:
space:
mode:
authorxue <>2005-11-11 21:03:34 +0000
committerxue <>2005-11-11 21:03:34 +0000
commitcb9ad614fe9e811a1565878ffbfb37803fa30486 (patch)
treecfcd509ab0b99525744a2347d27841c2d30f54ed /framework/TComponent.php
parent26ede97cc6771418af76a999931ccf5f4a8705a4 (diff)
Changed getPropertyByPath and setPropertyByPath to getSubProperty and setSubProperty, respectively.
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r--framework/TComponent.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php
index 36a06632..cdf83016 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -206,7 +206,7 @@ class TComponent
* @param string property path
* @return mixed the property path value
*/
- public function getPropertyByPath($path)
+ public function getSubProperty($path)
{
$object=$this;
foreach(explode('.',$path) as $property)
@@ -222,14 +222,14 @@ class TComponent
* @param string property path
* @param mixed the property path value
*/
- public function setPropertyByPath($path,$value)
+ public function setSubProperty($path,$value)
{
$object=$this;
if(($pos=strrpos($path,'.'))===false)
$property=$path;
else
{
- $object=$this->getPropertyByPath(substr($path,0,$pos));
+ $object=$this->getSubProperty(substr($path,0,$pos));
$property=substr($path,$pos+1);
}
$object->$property=$value;
@@ -344,7 +344,7 @@ class TComponent
list($object,$method)=$handler;
if(($pos=strrpos($method,'.'))!==false)
{
- $object=$this->getPropertyByPath(substr($method,0,$pos));
+ $object=$this->getSubProperty(substr($method,0,$pos));
$method=substr($method,$pos+1);
}
$object->$method($sender,$param);