public function delete($id)
 {
     if ((int) $id <= 0) {
         throw new Exception("No id provided");
     }
     $dao = new Portal_Model_DbTable_Gadget();
     return $dao->delete(array('id=?' => $id));
 }
 public function delete($id)
 {
     $dao = new Portal_Model_DbTable_Gadget();
     $dao->delete(array('definition=?' => $id));
     $dao = new Portal_Model_DbTable_GadgetDefinition();
     return $dao->delete(array('id=?' => $id));
 }