public function __get($name) { if ($name == 'params') { throw new RM_Base_Exception_Internal("Unable to get `params' value directly. Use `getParams()' method instead."); } return parent::__get($name); }