A simple mechanism which can be used to initialize the database schema from within the main package class file.
Data retrieved from API's or database tables filled with read-only data may need protection from being altered, deleted, or overwritten. The following offers a technique to block all saves to the database.
This class is a foundational class which can be used to create any number of MODX Revolution applications based on xPDO.
Class functions which directly access xPDO's class definition to create table headers and values for table datum.
Building a tool-set to tackle the DateTime conundrum of retrieving all the transactions which occur during a specified time period.
This is a quick function which returns a key=>value array of designated object fields while removing those to be kept from the presentation.
Provides a straightforward presentation of an xPDO derived class and its relationships.
Simple reusable function to convert a collection into an array of arrays
Database connections via xPDO are as simple as using mysqli, mysql_connect or other traditional methods: with less code, built in try - catch handling, increased functionality, type casting, and injection protection.
A PDO implementation for PHP 4 and 5.0.x (where native PDO extensions are not available), a way to abstract business objects from the actual SQL queries and prepared statements used to access a relational database structure representing them, and a way to easily describe and provide optimized implementations of an object model for multiple target database platforms.