public function GetSomeThing($object, $attr, $argu, $className = null)
{
$cacheObject = null;
if (is_object($object)) {
$cacheObject = $object;
} elseif ($object != "") {
$cacheObject =& $this->{$object};
}
if ($attr == "ID") {
$ret = $this->GetSomeThingById($cacheObject, $className, $argu);
} else {
$ret = $this->GetSomeThingByAttr($cacheObject, $attr, $argu);
}
if ($ret === null && !is_null($className)) {
$ret = new $className();
}
return $ret;
}