Prepare for marketplace
* add vendor to gitignore * small code adjustments * add MIT license
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php namespace NicoSt\GCalendar\Components;
|
||||
|
||||
use Cms\Classes\ComponentBase;
|
||||
use NicoSt\GCalendar\Classes\Event;
|
||||
use NicoSt\GCalendar\Classes\EventEntity;
|
||||
use NicoSt\GCalendar\Classes\GoogleCalendarService;
|
||||
use NicoSt\GCalendar\Models\Settings;
|
||||
|
||||
@@ -26,7 +26,8 @@ class Upcoming extends ComponentBase {
|
||||
|
||||
return $connector->calendarList();
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
||||
public function defineProperties() {
|
||||
return [
|
||||
'maxEvents' => [
|
||||
@@ -67,7 +68,7 @@ class Upcoming extends ComponentBase {
|
||||
foreach ($calendarEvents as $calendarEvent) {
|
||||
foreach ($calendarEvent as $event) {
|
||||
// Map to data response object.
|
||||
$eventObject = new Event();
|
||||
$eventObject = new EventEntity();
|
||||
$eventObject->setCalendarName($calendarEvent->summary);
|
||||
$eventObject->setEventName($event->summary);
|
||||
$eventObject->setLocation($event->location);
|
||||
|
||||
Reference in New Issue
Block a user