public function ajax_open_times() { $data = $this->parse_input_data(); $logic = new EALogic(); if (!array_key_exists('app_id', $data)) { $data['app_id'] = null; } $block_time = (int) EALogic::get_option_value('block.time', 0); $slots = $logic->get_open_slots($data['location'], $data['service'], $data['worker'], $data['date'], $data['app_id'], true, $block_time); die(json_encode($slots)); }
public function ajax_open_times() { $data = $this->parse_input_data(); $logic = new EALogic(); if (!array_key_exists('app_id', $data)) { $data['app_id'] = null; } $slots = $logic->get_open_slots($data['location'], $data['service'], $data['worker'], $data['date'], $data['app_id']); die(json_encode($slots)); }