function resetUsed() { // Check token JRequest::checkToken() or jexit('Invalid Token'); // Action parent::updateField($this->_table, 'used', 0, $this->_model); // Redirect $id = JRequest::getInt('id'); $this->setRedirect('index.php?option=' . $this->_option . '&controller=' . $this->_context . '&task=view&id=' . $id . '&tmpl=component'); }
function resetUsed() { // Check token JRequest::checkToken() or jexit('Invalid Token'); // Action parent::updateField($this->_table, 'used', 0, $this->_model); // Return parent::route(); }