Using xPDO will let you access the data in very easy, flexible ways since any xPDO-aware tables will allow you to use all the xPDO get*() methods. You'll also get the built-in xPDO caching and your code will be more compact and easier to maintain. You'll also get engine-independence, because xPDO can work with non-MySQL DBs (Microsoft MS SQL is implemented and others are on the roadmap).
If you already have the table(s) and (especially) if there are no complex relationships between tables, this might be an easier approach to xPDO-ifying things:
http://bobsguides.com/custom-db-tables.html.
FYI, you can create the table(s) and the traditional code to work with them now and implement the xPDO layer for it later. There's nothing special about xPDO tables themselves or the data in them. They're standard MySQL (or whatever) tables.
There's a quick intro to MODx objects here that shows some of the elegance of the xPDO methods:
http://bobsguides.com/revolution-objects.html
Thanks BobRay.
Although I understand the concepts of xPDO to me moving away from the classic mysql that I am well versed in seems like a big step for not a great amount of gain.
For the sites I am developing xPDO seems like it could prove more of a hindrance to me which might indicate that I still do not appreciate the full advantages of using it...
Also using xPDO means I would loose using phpmyadmin which is a great tool. If you have a large xpdo table and other complicated structures how do you browse it? Is there any kind of db viewer / manager that I have not heard of? Using phpmyadin is a such an easy effective way to brows and visualize your data I would hate to lose it.
Also could you tell me what table within modx data from a custom xpdo function is written to?
Once again thanks.
[ed. note: megasteve4 last edited this post 14 years, 9 months ago.]
@Lucas thanks for the prompt reply
I'm starting to feeling like i have missed something here...
I have tried the Doodles tut before but did not get past the 'Making the Magic Path Settings'...
So can you please clarify if I 'had' set up Doodles correctly it would actually create a specific mysql table for the doodles extra and then the doodles class would just interact directly with that. I was of the impression that the data would be stored in some 'black box' modx data structure rather than a classic mysql table.
Please bear with me I am pretty new to the concept of xPDO!
Thanks.