示例#1
0
 public function execute()
 {
     $config = $this->getConfig();
     $metodo = new metodoRiegoTable($config);
     $indicio = filter_input(INPUT_POST, 'filtro');
     $this->objMetodo = $metodo->getAll($indicio);
     $this->defineView('metodoRiego', 'index', 'html');
 }
示例#2
0
 public function execute()
 {
     $config = $this->getConfig();
     $metodo = new metodoRiegoTable($config);
     $buscar = filter_input(INPUT_POST, 'filtro');
     $this->objMetodo = $metodo->getAll($buscar);
     $this->defineView('metodoRiego', 'listar', 'html');
 }
 public function execute()
 {
     $id = filter_input(INPUT_GET, 'id');
     $config = $this->getConfig();
     $update = new metodoRiegoTable($config);
     $resul = $update->getById($id);
     $this->ObjMetodo = $resul;
     $this->defineView('metodoRiego', 'actualizar', 'html');
 }
示例#4
0
 public function execute()
 {
     $config = $this->getConfig();
     $metodo = new metodoRiegoTable($config);
     $id = filter_input(INPUT_GET, 'id');
     $metodo->setId($id);
     $metodo->delete();
     header('Location: ' . $config->getUrl() . 'index.php/metodoRiego/index');
 }
 public function execute()
 {
     $descripcion = filter_input(INPUT_POST, 'descripcion');
     $config = $this->getConfig();
     $insertar = new metodoRiegoTable($config);
     $insertar->setDescripcion($descripcion);
     $insertar->save();
     header('Location: ' . $config->getUrl() . 'index.php/metodoRiego/index');
 }
示例#6
0
 public function execute()
 {
     $desc = filter_input(INPUT_POST, 'descripcion');
     $id = filter_input(INPUT_POST, 'id');
     $config = $this->getConfig();
     $update = new metodoRiegoTable($config);
     $update->setDescripcion($desc);
     $update->setId($id);
     $update->update();
     header('Location: ' . $config->getUrl() . 'index.php/metodoRiego/index');
 }