[PHP] Arrays/OOP again

2002-03-07 Thread Joshua E Minnie
I am having problem with an array filled with an object. I am trying to access it using current($object_array)->object_var. Here is the line of code that is giving me the problem, any help that can be provided will be greatly appreciated. if((current($retrieved)->beginTime > $morning) && (curre

[PHP] Arrays/OOP

2002-03-06 Thread Joshua E Minnie
This is for anyone who was following this post, I found a work-around for the problem I was having with my array of objects. The original code looked like this: function getEvents($filename) { //string $filename $event_list = array(); $event_object = new event(); $i = 0; @ $fp = fopen($

[PHP] Arrays/OOP

2002-03-05 Thread Joshua E Minnie
I am relatively new to PHP but have had some background in OOP. I am having some trouble with a method that for a certain class. The problem is that I can seem to read my objects from an array that I am storing them to. I keep getting the error "Call to a member function on a non-object". I