open All Channels
seplocked EVE Technology Lab
blankseplocked ALE/Simple Xml and Calendar Event Attendees
 
This thread is older than 90 days and has been locked due to inactivity.


 
Author Topic

Zaine Maltis
Innsmouth Enterprises
Posted - 2011.09.03 19:20:00 - [1]
 

Warning PHP ahead :D

This is driving me nuts.

I'm using ALE (which is great!) for pulling the Calendar and doing stuff(tm) with it. I'm iterating over it like this:

$calendar = $ale->char->UpcomingCalendarEvents();
foreach ($calendar->result->upcomingEvents as $upcomingEvent) {
// do stuff with $upcomingEvent.
}

I'll loop through here as many times as there are events.

However, when I'm trying to use Calendar Event Attendees and loop over it like this:

$eventAttendees = $ale->char->CalendarEventAttendees(array('eventIDs' => '####'));
foreach ($eventAttendees->result->eventAttendees as $attendee) {
// try and do stuff with $attendee
}

I'll only ever have one loop.

If I dump out the $eventAttendees result set, there will be multiple attendees, but the act of trying to foreach over it, in the same way as UpcomingCalendarEvents seems to nuke/flatten them? I'm wondering if it could be something to do with each entry having the same eventID attribute? That would be dumb though.

Any clues? ugh

Zaine Maltis
Innsmouth Enterprises
Posted - 2011.09.03 21:08:00 - [2]
 

Urk, just seen this:

* <li>Array-like access to row nodes for rowsets by their 'key' attribute</li>

In xmlelement.php in ALE, which is the wrapper for SimpleXML. I'm wondering if that is munging the results data because each row has the same key.... :/

If so, this is an ALE bug.


 

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only