コード例 #1
0
 /**
  * Removes event from the local database calendar and then removes it from
  * the API calendar.
  *
  * @param $api_id
  *
  * @return mixed
  */
 public function destroyByApiId($api_id)
 {
     $this->model->where('api_id', $api_id)->delete();
     return $this->eventApi->destroy($api_id);
 }
コード例 #2
0
 /**
  * Sets the calendar ID for the current event API.
  *
  * @param string $id
  *
  * @return $this
  */
 public function setCalendarId($id)
 {
     $this->eventApi->setCalendar($id);
     return $this;
 }