Esempio n. 1
0
 /**
  * Return the target being worked with
  *
  * @return  mixed
  */
 protected function getBaseTable()
 {
     if ($this->baseTable === null) {
         return $this->repository->getBaseTable();
     }
     return $this->baseTable;
 }
Esempio n. 2
0
 /**
  * Apply mode delete on the repository
  *
  * @return  bool
  */
 protected function onDeleteSuccess()
 {
     try {
         $this->repository->delete($this->repository->getBaseTable(), $this->createFilter());
     } catch (Exception $e) {
         Notification::error($this->getDeleteMessage(false));
         $this->error($e->getMessage());
         return false;
     }
     Notification::success($this->getDeleteMessage(true));
     return true;
 }