/** * DM2 creation callback, binds to the current content topic. */ public function &dm2_create_callback(&$controller) { $this->_link = new net_nehmer_blog_link_dba(); $this->_link->topic = $this->_topic->id; if (!$this->_link->create()) { debug_print_r('We operated on this object:', $this->_link); throw new midcom_error('Failed to create a new article. Last Midgard error was: ' . midcom_connection::get_error_string()); } return $this->_link; }