Hello
Lately I've been overriding fActiveRecords get() function with my own and so far I haven't suffered any ill effects. The full code for my implementation is posted below.
If I wrote that correctly it's supposed to catch the times when it's used for callback requests and simply do what fActiveRecord does and otherwise do what I want it to do. I just wanted to make sure it isn't used for something else so I'm not setting myself up for a world of hurt somewhere down the line.
public function __get($var) {
if (method_exists($this, $var)) {
return array($this, $var);
}
$var = "get".$var;
$data = $this->$var();
if (is_string($data))
return htmlentities($data, ENT_COMPAT, "UTF-8");
else
return $data;
}