Open jkirbs opened 3 years ago
Take a look at MagicMethodsTrait.php
it's expecting you to use the magic methods to get values...
foreach ($items as $calItem) {
echo $calItem->getDateTimeStamp() . "\n";
echo $calItem->getLocation() . "\n";
}
I wish it wasn't, so I'm trying to find a way to get a basic \stdClass object -- not the translated Type
ones...
Finally stumbled upon the setting I wanted. :)
If you don't want the fancy classes with protected properties, getters, setters etc, just set the classmap
option to null or similar.
$ews = API::withCallbackToken('outlook.office365.com', $token, [
'classmap' => null,
]);
$responseObject = $ews->getClient()->FindItem($request);
i'm using the example to get calendar events
examples/calendar/getCalendarItems.php
but the array properties are :protected. i'm a little lost at how to loop through these. any direction would be greatly appreciated.