function edit() { $model = $this->getModel('marker'); JRequest::setVar('hidemainmenu', 1); JRequest::setVar('layout', 'form'); JRequest::setVar('view', 'marker'); JRequest::setVar('edit', true); parent::display(); $model->checkout(); }
function edit() { $model = $this->getModel('location'); if ($model->isCheckedOut()) { $this->setRedirect('index.php?option=com_webmapplus'); return JError::raiseWarning(500, JText::sprintf('DESCBEINGEDITTED', JText::_('The module'), $row->title)); } JRequest::setVar('hidemainmenu', 1); JRequest::setVar('layout', 'form'); JRequest::setVar('view', 'location'); JRequest::setVar('edit', true); parent::display(); $model->checkout(); }
function __construct($config = array()) { parent::__construct($config); }