Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function setDate($date, $desc, $name) { |
||
41 | $service = $this->getClient(); |
||
42 | $event = new Google_Service_Calendar_Event(array( |
||
43 | 'summary' => 'Nagido Document' . ' - ' . $name , |
||
44 | 'description' => $desc, |
||
45 | 'start' => array( |
||
46 | 'dateTime' => $date, |
||
47 | 'timeZone' => 'Europe/Vilnius', |
||
48 | ), |
||
49 | 'end' => array( |
||
50 | 'dateTime' => $date, |
||
51 | 'timeZone' => 'Europe/Vilnius', |
||
52 | ), |
||
53 | 'reminders' => array( |
||
54 | 'useDefault' => FALSE, |
||
55 | 'overrides' => array( |
||
56 | array('method' => 'email', 'minutes' => 1) |
||
57 | ), |
||
58 | ), |
||
59 | "colorId" => "6" |
||
60 | )); |
||
61 | $service->events->insert('primary', $event); |
||
62 | } |
||
63 | } |