public function editAction($id, $r_controller = null, $r_action = null, $r_id = null) { $phql = "SELECT a.id, CONCAT(c.nom,\":\",a.colonne) as nom FROM IgoGeometrie as g, IgoAttribut as a, IgoClasseEntite as c where a.geometrie_id=g.id and g.classe_entite_id=c.id order by c.nom, a.colonne"; $attribut_desc = $this->modelsManager->executeQuery($phql); $this->view->setVar("attribut_desc", $attribut_desc); parent::editAction($id, $r_controller, $r_action, $r_id); }
function editAction($id, $r_controller = null, $r_action = null, $r_id = null) { $this->definirParentsPourSelecteur($id); //$this->definirGroupesPourSelecteur($id); $this->definirCouchesPourSelecteur($id); parent::editAction($id, $r_controller, $r_action, $r_id); }
/** * Edits a igo_couche * * @param string $id */ public function editAction($id = null, $r_controller = null, $r_action = null, $r_id = null) { if ($this->request->isPost() && (!isset($id) || !is_numeric($id))) { $id = $this->request->getPost("id"); } parent::editAction($id, $r_controller, $r_action, $r_id); $igo_couche = IgoCouche::findFirstByid($id); if (!$igo_couche) { $this->flash->error("Couche {$id} non-trouvée"); } else { $this->tag->setDefault("acces", $igo_couche->IgoGeometrie->acces); } $this->setGeometrieDesc(); }