mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
This commit is contained in:
parent
00999c5cfa
commit
86d87c21d9
|
@ -65,6 +65,13 @@ abstract class Entity extends Object {
|
|||
if ($sType=='get') {
|
||||
if (isset($this->_aData[$sKey])) {
|
||||
return $this->_aData[$sKey];
|
||||
} else {
|
||||
if (preg_match('/Entity([^_]+)/',get_class($this),$sModulePrefix)) {
|
||||
$sModulePrefix=strtolower($sModulePrefix[1]).'_';
|
||||
if (isset($this->_aData[$sModulePrefix.$sKey])) {
|
||||
return $this->_aData[$sModulePrefix.$sKey];
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} elseif ($sType=='set' and key_exists(0,$aArgs)) {
|
||||
|
|
Loading…
Reference in a new issue