1
redheadedrod
Database Query Helpers

I am looking through some of the old messages on here trying to find out if I can find any documentation on Criteria since it is kind of cryptic.

I am working on a new database connector and trying to get it worked out while using as much API code that already exists as possible.

Can someone do a write up of the criteria classes and how they work?

Also I happened across another link that was relatively recent that looks like it could really be helpful with select statements and maybe some other stuff but there isn't much information about it either. XoopsModelRead is mentioned in this thread:

https://xoops.org/modules/newbb/viewtopic.php?post_id=349742

What are some other helper classes that can be used to build queries with?
We need some further tutorials on how these classes work so we can make use of them.


2
Mamba
Re: Database Query Helpers
  • 2013/2/11 3:00

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Few useful links related to Criteria:

https://xoops.org/modules/newbb/viewtopic.php?post_id=312997#forumpost312997
https://xoops.org/modules/mediawiki/index.php?title=Dev:XoopsCriteria
http://www.slideshare.net/xoopsproject/oop-adventures-with-xoops
http://dongbeta.com/2009/07/usage-of-xoops-2-criteria-class/ (in Chinese)
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
redheadedrod
Re: Database Query Helpers

Wow you are quick tonight... ;)

Too bad I lost power about 2 minutes after I posted that message. From what I can see so far those links are very helpful and will save me alot of work!

Rodney

4
redheadedrod
Re: Database Query Helpers

Quote:

Mamba wrote:
Few useful links related to Criteria:

https://xoops.org/modules/newbb/viewtopic.php?post_id=312997#forumpost312997

Very Informative, Sounds like I might be spending alot of time on something that is already handled by the system. Although I don't see an easy way to handle transactions with this... Lots of good information outside of criteria as well. Wish I had seen this sooner. Probably did when it didn't make sense to me...

Quote:

http://www.slideshare.net/xoopsproject/oop-adventures-with-xoops
http://dongbeta.com/2009/07/usage-of-xoops-2-criteria-class/ (in Chinese)

Very nicely done slide show.. Really should have a place online here for displaying videos and downloading tutorials. It would make for a nice primer for most any programmer. Maybe put a new category in the module repository or something.
Didn't try translating the Chinese.

Rodney

5
Mamba
Re: Database Query Helpers
  • 2013/2/11 6:27

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
Maybe put a new category in the module repository or something.

Yes, we need to write a whole new documentation for XOOPS.

I don't want to invest any time right now into it, as we're waiting for XOOPS 2.6.0, and I hope, by working together with the Core developers, we'll be able to create an up-to-date documentation.

But I am trying to collect links to different tutorials/documentation or interesting posts on Forums, that we could use in writing the XOOPS 2.6.0 Tutorial/Documentation. For example, several of the slides in the presentation came from xCube folks, who graciously agreed that we can use them.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

178 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits