Ejemplo n.º 1
0
 public function createAction()
 {
     $this->haveAccess();
     $O_label = new Label();
     $O_label->setLabel($_POST['label']);
     $O_label->setModel($_POST['model']);
     $O_label->setReference($_POST['reference']);
     $O_label->setDescription($_POST['description']);
     $O_label->setLifetime($_POST['lifetime']);
     $O_label->setControlCycle($_POST['control_cycle']);
     $O_label->setNotice($_POST['notice']);
     $O_label->setProcedure($_POST['procedure']);
     $O_label->setImage($_POST['image']);
     $O_label->setSize($_POST['size']);
     $O_label->setColor($_POST['color']);
     $O_label->setCategoryEpiId($_POST['category_epi_id']);
     $O_labelMapper = new LabelMapper();
     $I_labelId = $O_labelMapper->insert($O_label);
     die(header('Location:/label/paginate/1'));
 }