Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PEAR:DB_DataObject

Status
Not open for further replies.

KryptoS

Programmer
Feb 7, 2001
240
BE
Hello guy's, girls,

I'm using pear DB_DataObject and I'm a little stuck:

$interneafd = DB_DataObject::factory(INTERNEAFD);
$interneafd->find();
while($interneafd->fetch()) {
...
...
}

after this code I want to use the same $interneafd (without reloading it). How can I set my pointer in the begin so I can do another fetch? Is this possible?


thanks,
Greetings

The One And Only KryptoS
 
the class does not expose a contained method for resetting the pointer. you'd either need to reset the pointer yourself, add a child method to do so or, my preference, bung the results into an array in your first use, and then reuse the array later.
 
what do you mean with 'child method'?

The One And Only KryptoS
 
sorry - child class. the staticget() method can be overloaded. you're better off asking in the pear mailing list though: you'll probably get an answer direct from Alan and/or Justin (the writers of DataObject and the child, FormBuilder, respectively.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top