getModel('comments'); $model->publish(); } function unpublish() { JRequest::checkToken() or jexit('Invalid Token'); $model = $this->getModel('comments'); $model->unpublish(); } function remove() { JRequest::checkToken() or jexit('Invalid Token'); $model = $this->getModel('comments'); $model->remove(); } function deleteUnpublished() { JRequest::checkToken() or jexit('Invalid Token'); $model = $this->getModel('comments'); $model->deleteUnpublished(); } function saveComment() { JRequest::checkToken() or jexit('Invalid Token'); $model = $this->getModel('comments'); $model->save(); } }