Example #1
0
 protected function _appendParamsSubform($sysmap_id)
 {
     $sysmapItem = $this->model->getNodeByHash($sysmap_id);
     if (empty($sysmapItem->Qualifier)) {
         return false;
     }
     $formClass = trim($sysmapItem->Qualifier);
     if (!empty($formClass)) {
         if (!class_exists($formClass)) {
             throw new \Zend\Form\Exception\UnexpectedValueException('Associated form class does not exists!');
         }
         $paramsForm = new $formClass();
         if (!$paramsForm instanceof \Zend\Form\SubForm) {
             throw new \Zend\Form\Exception\UnexpectedValueException('Associated form class must be instance of \\Zend\\Form\\SubForm!');
         }
         $this->addSubForm($paramsForm, 'params', $this->getElement('submit_extension')->getOrder() - 1);
     }
 }
 /**
  * Clean complete sysmap cache
  */
 public function cleanCacheAction()
 {
     $this->model->clearExtensionsCache();
     $this->flashMessenger(array())->addMessage('Sysmap cache cleared.');
     return $this->redirect(array())->toRoute('default', array('controller' => 'sysmap-admin', 'action' => 'list'));
 }
Example #3
0
 /**
  * Update existing system map external
  * @param string $id
  * @param \Zend\Http\Request $request
  * @param string $name
  * @return boolean 
  */
 public function updateExternal($id, \Zend\Http\Request $request, $name)
 {
     return $this->model->deleteExtend($id);
 }