/** * Checks-in one or more resources * Redirects to the main listing * * @return void */ public function checkinTask() { // Check for request forgeries Request::checkToken(); // Incoming $id = Request::getInt('id', 0); if ($id) { // Load the object and checkin $row = new Tables\Publication($this->database); $row->load($id); $row->checkin(); } // Redirect App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller, false)); }