public function __get($propertyName) { $this->checkDirty(); $result = parent::__get($propertyName); if (array_key_exists($propertyName, $this->map)) { switch ($this->map[$propertyName]['dataType']) { case BM_VT_DATETIME: return $result; break; default: return $result; break; } } if (isset($result)) { return $result; } }
public function __get($propertyName) { switch ($propertyName) { case 'dataObjectMapIds': if (!array_key_exists('dataObjectMapIds', $this->properties)) { $this->properties['dataObjectMapIds'] = $this->applicationCache->getDataObjectMaps($this, false); } return $this->properties['dataObjectMapIds']; break; case 'dataObjectMaps': return $this->applicationCache->getDataObjectMaps($this); break; default: $className = 'bm' . ucfirst($propertyName); if (class_exists($className)) { if (!$this->propertyExists($propertyName)) { $this->addProperty($propertyName, new $className($this)); } } return parent::__get($propertyName); break; } }