/** * Although is is preferrable to call $this->object->method(), sometimes * it's nice to use $this->method() instead. * @param string $method * @param array $args * @return mixed */ function __call($method, $args) { if ($this->object->has_method($method)) { return call_user_func_array(array(&$this->object, $method), $args); } }