Commit graph

34 commits

Author SHA1 Message Date
Joshua Sherman
c9f39e2e18 Updated email address 2014-01-20 15:19:38 -05:00
Joshua Sherman
30b9616b12 Finished testing the Database class 2014-01-18 10:31:46 -05:00
Joshua Sherman
51467a60f7 Working on tests for the Model class
Fixed some bugs, got MySQL setup for Travis.
2014-01-16 17:06:31 -05:00
Joshua Sherman
6257f89b18 Added most of the Cache tests
Dropped some unnecessary try/catch blocks and updated the Database class to
not use any data sources that lack a driver.
2014-01-14 02:19:40 -05:00
Joshua Sherman
9a2d593eff Reworked the database class
Got rid of all of that object bloatin’ nonsense.
2014-01-12 23:24:41 -05:00
Joshua Sherman
8fc726b983 Updated copyright date.
It's a new year, figured it would be nice to get this done before summer time
like most years.
2014-01-05 13:44:25 -05:00
Josh Sherman
d96181c60f Q4 2013, seemed like a good time to update the copyright notices 2013-11-04 17:36:04 -05:00
Josh Sherman
d25b042d8e Revert "Reworked Database stuff to be Datastore stuff"
This reverts commit ebd0018473.
2013-02-26 15:14:17 -05:00
Josh Sherman
ebd0018473 Reworked Database stuff to be Datastore stuff
Wanted a generic grouping for all datastores so there's a place for memcached and redis.
2013-02-26 10:15:52 -05:00
Josh Sherman
bf95e07591 Set up database factory to bail is no driver is defined
Solves the issue with having a site not using the built in PDO (case in point, I'm building a site entirely on Redis with a separate vendor library that isn't part of PICKLES)
2012-12-04 12:09:14 -05:00
Josh Sherman
dc0d98906f Added Model and configuration overrides for the column mapping
Also obliterated the getters and setters in the Database class after running some tests against their speed in comparison to getting and setting the variables directly
2012-10-22 10:23:10 -04:00
Josh Sherman
6f114361bd Updated copyright, website and contact email 2012-09-30 12:40:29 -04:00
Josh Sherman
92fcfee986 PostgreSQL support 2012-09-30 12:18:25 -04:00
Josh Sherman
dd4fb702eb Ripped out Mongo code, it's not being used and not being developed against at this time. 2011-11-06 20:53:48 -05:00
Josh Sherman
e104250597 Caching of simple queries against primary key. 2011-10-30 20:49:23 -04:00
Josh Sherman
02c0eef632 Added caching flag to database. 2011-10-30 17:30:05 -04:00
Josh Sherman
996241debb Updated headers to have 2011 in the copyright date. Also updated copyright to my name as the LLC is currently defunct. 2011-05-09 22:14:55 -04:00
Josh Sherman
89e2c3db19 Cleaned up stray whitespace. 2010-12-09 20:12:05 -05:00
Josh Sherman
83da525bd6 Removed SimpleTest. 2010-10-16 00:18:56 -04:00
Josh Sherman
3ce42507da Changed type variable to be driver, and updated PDO driver names (in the config) to line up with the PHP internal names. 2010-10-14 22:24:16 -04:00
Josh Sherman
1cd61dda42 Updated licensing to use the [better suited] MIT License. 2010-10-14 20:12:40 -04:00
Josh Sherman
1cb7980353 Moved PDO classes into Database/PDO and gave data models the ability to know which datasource to use. 2010-10-13 23:41:27 -04:00
Josh Sherman
1e0a7cd719 Added support for PostgreSQL and SQLite. 2010-10-13 23:06:46 -04:00
Josh Sherman
83e8447d8a Added Mongo layer by piggy backing the PHP/Pecl Mongo class. 2010-10-12 03:30:47 -04:00
Josh Sherman
630a1276aa Gutted config system to use a PHP array instead of 1980's INI files. Broke down the database layer to support multiple types of interfaces and started laying out the Mongo interface class. 2010-10-12 01:44:10 -04:00
Josh Sherman
9b4763dd23 Removed whitespace. 2010-10-03 15:16:01 -04:00
Josh Sherman
d2966c7345 Created a Singleton parent class and implemented some common Object method. 2010-10-02 16:36:54 -04:00
Josh Sherman
1a15dfd337 Expanded the Profiler and added SQL query profiling. 2010-10-01 23:25:45 -04:00
Josh Sherman
a48706da4b Removed whitespace. 2010-05-15 22:51:17 -04:00
Josh Sherman
fefcfd52e5 Added logging of input parameters
* Logs the input parameters (if available) with the query and slow query entries.

 * Uses the new JSON constant to determine if it should use json_encode() or serialize()
2010-03-24 18:47:24 -04:00
Josh Sherman
cda9c7d28e Implementing the Database class.
* Updated the Database class to work like a Singleton with a getInstance() method.

 * The Database class does not have a private constructor so it can still be instantiated in case someone needs to do so.

 * Replaced Logger class with Log class.

 * Updated Module to have an instance of the Database object as well as the Model class.

 * In my perfect vision for usage, the Module classes should never talk directly to the database, but do so via Models, but I know that's asking a lot, so I'm leaving in some options for folks.

 * Updated documentation.
2010-03-16 22:54:21 -04:00
Josh Sherman
7814b5dacb Updated @package name from pickles to PICKLES. 2010-03-12 23:42:21 -05:00
Josh Sherman
c2445d3a62 Removed Cache class.
* File was little more than just a stub file for the Cache class.

Removed Mailer class.

 * Attempting to remove non-critical classes from the system.

 * Class will be re-added / re-factored at a later date once the core of PICKLES is done.

Removed Security class.

 * Removing non-critcal classes from the system.

 * Security class was not very generic and will be replaced down the road once the security scheme is full realized.

Removed Form class.

 * Removing non-critcal classes from PICKLES to help the rewrite efforts.

 * Form class would take a database table and convert it into a webform.  Nice script, but really had no place in PICKLES.

 * Eventually will replace with a generic HTML form element generation class.

Added INSTALL file.

Updated derivation of the hostname.

 * Hostname is now defaulted in the class variable definition.

Refactoring Controller and Module
2010-03-11 23:19:33 -05:00
Josh Sherman
67c12593bc Swapped DB class for Database class.
* DB class was quite dated and wasn't worth refactoring

 * Database class is a bit more modern and utilizes PDO
2010-03-11 22:42:11 -05:00