コード例 #1
0
 /**
  * Move an item down one in the ordering
  *
  * @return     void
  */
 public function orderdownTask()
 {
     // Check for request forgeries
     Request::checkToken();
     // Incoming
     $id = Request::getVar('id', array(0));
     $id = intval($id[0]);
     // Load the category, reorder, save
     $row = new Category($this->database);
     $row->load($id);
     $row->move(1, "section='{$row->section}'");
     // Redirect
     App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller, false));
 }