Ejemplo n.º 1
0
 public function delete()
 {
     if ($this->isAdmin == true) {
         if ($_REQUEST['id'][0] != "") {
             $attributeValueModel = new AttributeValueModel();
             foreach ($_REQUEST['id'] as $id) {
                 $attributeValueModel->setAid($id);
                 $attributeValueModel->deleteByAttribute();
                 $this->attributeModel->setId($id);
                 $this->attributeModel->delete();
             }
             $this->listing();
         }
     }
 }