Beispiel #1
0
 /**
  * Displays article link delete confirmation
  *
  * @param mixed $handler_id The ID of the handler.
  * @param Array $args The argument list.
  * @param Array &$data The local request data.
  */
 public function _handler_delete($handler_id, array $args, array &$data)
 {
     $this->_article = new midcom_db_article($args[0]);
     $qb = net_nehmer_blog_link_dba::new_query_builder();
     $qb->add_constraint('topic', '=', $this->_content_topic->id);
     $qb->add_constraint('article', '=', $this->_article->id);
     if ($qb->count() === 0) {
         throw new midcom_error_notfound('No links were found');
     }
     // Get the link
     $results = $qb->execute_unchecked();
     $this->_link =& $results[0];
     $this->_link->require_do('midgard:delete');
     $this->_process_delete();
     midcom::get('metadata')->set_request_metadata($this->_article->metadata->revised, $this->_article->guid);
     $this->_view_toolbar->bind_to($this->_article);
     midcom::get('head')->set_pagetitle("{$this->_topic->extra}: {$this->_article->title}");
     $this->_update_breadcrumb_line($handler_id);
 }