public function remove() { viewData::removeByTypeLinkId('cmd', $this->getId()); dataStore::removeByTypeLinkId('cmd', $this->getId()); $this->getEqLogic()->emptyCacheWidget(); $this->emptyHistory(); return DB::remove($this); }
public function getviewData() { return viewData::byviewZoneId($this->getId()); }
public function remove() { foreach ($this->getCmd() as $cmd) { $cmd->remove(); } viewData::removeByTypeLinkId('eqLogic', $this->getId()); dataStore::removeByTypeLinkId('eqLogic', $this->getId()); $this->emptyCacheWidget(); return DB::remove($this); }
public function remove() { viewData::removeByTypeLinkId('scenario', $this->getId()); dataStore::removeByTypeLinkId('scenario', $this->getId()); foreach ($this->getElement() as $element) { $element->remove(); } $this->emptyCacheWidget(); return DB::remove($this); }
throw new Exception(__('Vue non trouvé. Vérifier l\'id', __FILE__)); } $view->removeviewZone(); $view_ajax = json_decode(init('view'), true); utils::a2o($view, $view_ajax); $view->save(); if (count($view_ajax['zones']) > 0) { foreach ($view_ajax['zones'] as $viewZone_info) { $viewZone = new viewZone(); $viewZone->setView_id($view->getId()); utils::a2o($viewZone, $viewZone_info); $viewZone->save(); if (isset($viewZone_info['viewData'])) { $order = 0; foreach ($viewZone_info['viewData'] as $viewData_info) { $viewData = new viewData(); $viewData->setviewZone_id($viewZone->getId()); $viewData->setOrder($order); utils::a2o($viewData, $viewData_info); $viewData->save(); $order++; } } } } ajax::success(); } if (init('action') == 'getEqLogicviewZone') { $viewZone = viewZone::byId(init('viewZone_id')); if (!is_object($viewZone)) { throw new Exception(__('Vue non trouvé. Vérifier l\'id', __FILE__));