Josh Sherman
9fa67d0717
Added logic to snapshot/recall the original object properties.
2011-11-02 22:49:53 -04:00
Josh Sherman
b39a6163e8
Moved logic to run the query out of the constructor.
2011-11-02 22:15:04 -04:00
Josh Sherman
575a2f0914
Commented out cache usage in Model.
2011-11-01 19:05:25 -04:00
Josh Sherman
baa291d88b
Removed hashing based on some new caching logic I'm still dreaming up.
2011-10-30 22:09:12 -04:00
Josh Sherman
e104250597
Caching of simple queries against primary key.
2011-10-30 20:49:23 -04:00
Josh Sherman
4b96d28bb7
Added cache object to Model and cleaned up some variable names.
2011-10-30 19:24:23 -04:00
Josh Sherman
02c0eef632
Added caching flag to database.
2011-10-30 17:30:05 -04:00
Josh Sherman
237cb22990
Added Cache class and made adjustments to Config to default the variables to false.
2011-10-30 17:14:56 -04:00
Josh Sherman
df5a2e2aaa
Removed logic to load /__pickles/(js|css)/*.(js|css) files. It didn't work in nginx without trickery and it was a fundamentally ignorant approach since it caused PHP overload just to load a static file. The inclusion of the boilerplate will allow users to fork said project and have all files readily available.
2011-08-28 18:00:30 -04:00
Josh Sherman
7064abf008
Added Google Profanity checker.
2011-08-17 18:00:16 -04:00
Josh Sherman
e5d3cb9988
Documented the Tinychat class (mostly). Still can't get the HTML portion to work, will try on a production server soon.
2011-08-13 13:38:34 -04:00
Josh Sherman
d6fc14e293
Started building a Tinychat API wrapper
2011-08-13 01:18:00 -04:00
Josh Sherman
886026aa4c
Added reference name to exception that is thrown.
2011-08-06 13:31:08 -04:00
Josh Sherman
dbcf6fdb80
Changed environment checking to use HTTP_HOST instead of SERVER_NAME to resolve an issue with nginx server_name variable. Updated jarring to skip any files prefixed with '.' so that I could edit core files and not generate munged jar files because of vi .swp files.
2011-08-06 12:57:59 -04:00
Josh Sherman
3ea9ec8f36
Added support for "REPLACE" SQL syntax.
2011-07-31 18:33:17 -04:00
Josh Sherman
c6bda10e3f
Updated Security class to allow for a less paranoid user access check. Previously, at Security::login() the user ID would be set, and said user ID would be used to hit the database and verify the user's access on every page new. Now, if you pass the optional level value to Security::login() the class will store the value in the session and will continue to use the session for all subsequent verifications. This could easily be supplemented with short TTL on sessions and/or logic in index.php to periodically refresh said data to ensure someone's access wasn't downgraded.
2011-07-26 09:50:07 -04:00
Josh Sherman
bc78fd61e8
Expanded session handling to include memcached.
2011-07-23 23:47:46 -04:00
Josh Sherman
3a89586eb1
Added configuration variable to disable logging. Currently it is a boolean value, but eventually it will probably be broken out into an array with key/value pairs to correspond with the different logging options within the PICKLES core.
2011-06-15 21:13:28 -04:00
Josh Sherman
7fba0d231d
Added File class.
2011-06-12 18:08:59 -04:00
Josh Sherman
bf4b86116f
Added closing ?>
2011-06-01 22:55:38 -04:00
Josh Sherman
07f495d789
Added date utility class. Similar to the string class but for dates. Contains a method to calculate an age from a date.
2011-05-25 21:51:42 -04:00
Josh Sherman
b2504f5a6b
Updated $db property to be protected instead of private to allow for "in model" interfacing with the object.
2011-05-21 00:28:14 -04:00
Josh Sherman
aa8ea5849e
Added submit() method for generating submit buttons. Flagged the shorthand methods to generate different types of inputs (password, hidden, et cetera) as deprecated and added shorter-hand methods. Example, you can use $__form->password() instead of $__form->passwordInput(). Methods will eventually be updated to throw deprecation warnings and subsequently removed.
2011-05-20 20:26:59 -04:00
Josh Sherman
5d63e032f5
Added sanity check to _REQUEST['request'] when redirecting to the login page. Alleviates an issue when securing the default module.
2011-05-14 21:38:06 -04:00
Josh Sherman
2ea8e1957d
Fixed bug with commit() when no original record is set (in the case that you are running an update but did not pull the row beforehand).
2011-05-14 16:41:08 -04:00
Josh Sherman
ccf728605d
Sessions in the database were not destroying correctly.
2011-05-14 09:54:00 -04:00
Josh Sherman
76fd05d509
Added checkbox and radio methods.
2011-05-12 00:21:29 -04:00
Josh Sherman
d5085ba6b9
Added vim fold markers to the methods.
2011-05-09 22:33:01 -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
c1e1ab3ea1
Added method to generate a password input.
2011-05-08 18:23:58 -04:00
Josh Sherman
7933bac647
State select method was not passing the correct arguments.
2011-05-08 17:55:08 -04:00
Josh Sherman
fb8a1f5894
Updated Model to allow ID value to be passed in either argument.
...
Existing functionality:
User(1); -- SELECT * FROM users WHERE id = 1;
New functionality:
OLD: User('count', 1) -- SELECT COUNT(*) AS count FROM users;
FIX: User('count', 1) -- SELECT COUNT(*) AS count FROM users WHERE id = 1;
2011-05-08 12:12:10 -04:00
Josh Sherman
0d49ac0558
Updated profiler to only attempt to profile SELECT statements. Also optimized the sanity checks a bit so that we're not always running preg_match() when the profiler is disabled.
2011-05-05 23:14:59 -04:00
Josh Sherman
3ded1097ff
Fixed issue with profiler when configuration is set to queries or explains and there are no queries on the page.
2011-05-05 12:42:18 -04:00
Josh Sherman
f3ca615986
Resolved error in Profiler resulting from fetchAll() being removed.
2011-05-03 23:30:07 -04:00
Josh Sherman
4e6098bc86
Added logic to traverse the filesystem in an attempt to locate the configuration. Errors if it gets to /. Comes into play when using command line scripts that may live in sub-directories of the ./scripts directory.
2011-05-03 23:14:37 -04:00
Josh Sherman
aa3427a25c
Added CLI exception display and moved $is_cli to a constant.
2011-05-03 22:34:11 -04:00
Josh Sherman
180aa74486
Updated website URL.
2011-05-03 22:33:48 -04:00
Josh Sherman
d9436919bd
Fixed missing Content-Type headers when loading internal static assets (e.g. /__pickles/css/reset.css)
2011-04-09 16:34:49 -04:00
Josh Sherman
a2f2e98195
Added reset to the walk() to save from calling reset() when iterating a record set more than once (hey, that shit happens!)
2011-04-02 12:55:29 -04:00
Josh Sherman
6bb94972b4
Added walk() method and scaffolding for sort() and shuffle()
2011-04-02 12:47:10 -04:00
Josh Sherman
a7addc1ab0
Fixed selected attribute issue in option generation method.
2011-01-31 00:01:50 -05:00
Josh Sherman
b2047bd0cb
Fixed issue with request method and security hash validation.
2011-01-28 23:21:44 -05:00
Josh Sherman
95e75226d3
Return authentication error as JSON when script was POSTed to instead of performing a redirect to the login page.
2011-01-26 23:42:16 -05:00
Josh Sherman
2bb9fd10e4
Fixed issue with session_destroy()
2011-01-20 22:14:33 -05:00
Josh Sherman
24770b2e9c
Moved session set handler out of the Session class.
2011-01-20 20:45:48 -05:00
Josh Sherman
8206239d59
Added model return type "indexed". Indexed returns are full recordsets, but they are indexed on the first value of the array. This will probably be expanded to allow for an index column to be defined as the 2nd or 3rd parameter.
2011-01-16 21:29:10 -05:00
Josh Sherman
04471d607a
Added database session handling.
2011-01-16 15:40:59 -05:00
Josh Sherman
c4ee198a8e
Changed default input type to "text" from "input" which was a typo.
2011-01-15 22:00:33 -05:00
Josh Sherman
861311a7f3
Cast variable as string so ctype_digit() will work.
2011-01-15 17:33:37 -05:00