/** * Get a value of a var. * Is the var is a float, return the locale float. * * @param string $varname Name of the var to assign. * * @return mixed Value of the var. */ public function __get($varname) { $info = $this->info(); $value = parent::__get($varname); $varForInfo = Phprojekt_ActiveRecord_Abstract::convertVarToSql($varname); if (true == isset($info['metadata'][$varForInfo])) { $type = $info['metadata'][$varForInfo]['DATA_TYPE']; $value = Phprojekt_Converter_Value::get($type, $value); } return $value; }