getModel('item'); $model->save(); } function apply() { $this->save(); } function cancel() { JRequest::checkToken() or jexit('Invalid Token'); $model = $this->getModel('item'); $model->cancel(); } function deleteAttachment() { $model = $this->getModel('item'); $model->deleteAttachment(); } function tag() { $model = $this->getModel('tag'); $model->addTag(); } function download() { $model = $this->getModel('item'); $model->download(); } function extraFields() { $mainframe = JFactory::getApplication(); $itemID = JRequest::getInt('id', NULL); $categoryModel = $this->getModel('category'); $category = $categoryModel->getData(); $extraFieldModel = $this->getModel('extraField'); $extraFields = $extraFieldModel->getExtraFieldsByGroup($category->extraFieldsGroup); $output = '
'.$extraField->name.' | |
'; $output .= ' | '.$extraFieldModel->renderExtraField($extraField, $itemID).' |