/** Magic function to get an object property value @phpversion 5.1 @param $arg_property_name the property name of the object */ public function __get($arg_property_name) { if (array_key_exists($arg_property_name, $this->__relations) && $this->__relations[$arg_property_name]['get_function']) { return call_user_function(array(&$this, $this->__relations[$arg_property_name]['get_function'])); } return $this->__properties[$arg_property_name]; }
/** * The scanner for fetching each row. * * @param unknown $rows * @param unknown $userCallback the user function callback. */ protected function fetch_scanner($rows, $userCallback) { if ($rows) { foreach ($rows as $row) { call_user_function($userCallback, $row); } } }