/** * Adds a help link */ public function Add() { // Check the token if (!Kit::CheckToken()) { trigger_error('Token does not match', E_USER_ERROR); } $db =& $this->db; $response = new ResponseManager(); $topic = Kit::GetParam('Topic', _POST, _STRING); $category = Kit::GetParam('Category', _POST, _STRING); $link = Kit::GetParam('Link', _POST, _STRING); // Deal with the Edit Kit::ClassLoader('help'); $helpObject = new Help($db); if (!$helpObject->Add($topic, $category, $link)) { trigger_error($helpObject->GetErrorMessage(), E_USER_ERROR); } $response->SetFormSubmitResponse(__('Help Link Added'), false); $response->Respond(); }