Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Postgresql
- SELECT
- event_recurring_id,
- description,
- extension,
- priority,
- show_return,
- start_day,
- start_time,
- end_day,
- end_time,
- event_type,
- start_epoch,
- to_timestamp(start_epoch) AS "start",
- end_epoch,
- to_timestamp(end_epoch) AS stop
- FROM "public".event_recurring
- ORDER BY start_day, start_time
- //Events/custom add
- $keys["event_recurring_id"] = 0;
- require_once ("saresources/included_files/sa_api.php");
- $data[extension_id] = $values["extension"];
- $data[description] = $values["description"];
- $data[priority] = $values["priority"];
- $data[show_return] = $values["show_return"];
- $data[start_day] = $values["start_day"];
- $data[end_day] = $values["end_day"];
- $data[event_type_id] = $values["event_type"];
- $data[start_time] = $values["start_time"];
- $data[end_time] = $values["end_time"];
- $api = new sa_api();
- $json = $api->post('api/add_extension_event_recurring', $data);
- return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement