Exemple #1
0
 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();
 }
Exemple #2
0
 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();
 }
Exemple #3
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }