Exemple #1
0
 public function __construct($spec, $options = null)
 {
     $this->addMultiOption("", "");
     $pickupgroup = new Snep_PickupGroups_Manager();
     $pickupgroups = array();
     foreach ($pickupgroup->fetchAll() as $key => $val) {
         $pickupgroups[$val->id_pickupgroup] = $val->ds_name;
     }
     $this->addMultiOptions($pickupgroups);
     parent::__construct($spec, $options);
 }
 public function deleteAction()
 {
     $id = mysql_escape_string($this->getRequest()->getParam('id'));
     $pickupgroup = new Snep_PickupGroups_Manager();
     if ($pickupgroup->fetchRow('id_pickupgroup = ' . $id) !== NULL) {
         $pickupgroup->delete('id_pickupgroup = ' . $id);
     }
     $this->_redirect($this->getRequest()->getControllerName());
 }