/** * Edit an entry * * @param object $row * @return void */ public function editTask($row = NULL) { if (!User::authorise('core.edit', $this->_option) && !User::authorise('core.create', $this->_option)) { App::abort(403, Lang::txt('JERROR_ALERTNOAUTHOR')); } Request::setVar('hidemainmenu', 1); // Load a tag object if one doesn't already exist if (!is_object($row)) { // Incoming $id = Request::getVar('id', array(0)); if (is_array($id) && !empty($id)) { $id = $id[0]; } $row = Object::oneOrNew(intval($id)); } // Output the HTML $this->view->set('row', $row)->setLayout('edit')->display(); }