public function execute() { $config = $this->getConfig(); $registroTractor = new registroTractorTable($config); $this->objregistroTractor = $registroTractor->getAll(); // asà declaramos la vista a usar $this->defineView('registroTractor', 'index', 'html'); }
public function execute() { $rtr_item = filter_input(INPUT_POST, 'rtr_item'); $registroTractor = new registroTractorTable(); $registroTractor->setItem($rtr_item); $registroTractor->delete(); $variable = array('data' => array('code' => 200)); $this->defineView('registroTractor', 'eliminar', $variable, 'json'); }
public function execute() { $id = filter_input(INPUT_GET, 'rtr_item'); $objregistroTractor = registroTractorTable::getById($id); $variables = array('objregistroTractor' => $objregistroTractor); $this->defineView('registroTractor', 'ver', $variables, 'html'); }
public function execute() { $formRegistroTractor = filter_input_array(INPUT_POST)['registroTractor']; $registroTractor = new registroTractorTable(); $registroTractor->setControlSalidaCana($formRegistroTractor['csc_id']); $registroTractor->setHoraSalida($formRegistroTractor['hora_salida']); $registroTractor->setTractor($formRegistroTractor['rtr_tractor']); $registroTractor->setObservacion($formRegistroTractor['rtr_observacion']); $registroTractor->setDerCreatedAt($formRegistroTractor['der_created_at']); $this->objDetaleRegistro = $registroTractor->update(); $this->defineView('registroTractor', 'actualizar', 'html'); }