Commit graph

666 commits

Author SHA1 Message Date
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
afac101ba5 Added "jar" file to alleviate overhead of __autoload() look ups and decrease the number of included files to load a page. 2011-06-01 22:55:52 -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
fa1e1b290c Setting attribute "readonly" to "" doesn't seem to work anymore. Replaced with calling removeAttr() to get rid of it completely. 2011-05-07 16:13:47 -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
665b632868 Updated jQuery to 1.6, jQuery UI to 1.8.12 and jQuery Validator to 1.8 2011-05-04 22:41:45 -04:00
Josh Sherman
15ab2b7827 Forgot to commit some new doc files. 2011-05-04 21:12:38 -04:00
Josh Sherman
28cdd85a4a Updated documentation. 2011-05-03 23:30:53 -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
b4ea95dde5 Added sample script. 2011-05-03 22:34:03 -04:00
Josh Sherman
180aa74486 Updated website URL. 2011-05-03 22:33:48 -04:00
Josh Sherman
f3f111fa22 Updated #3 to not display as a code block. 2011-04-17 13:43:49 -07:00
Josh Sherman
a31673d1ca Renamed launchpad to boilerplate. 2011-04-16 22:38:14 -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
bf60869274 Enabled error reporting before any files are loaded. This allows parse errors and such to be caught and displayed instead of getting a white screen. 2011-03-31 23:05:40 -04:00
Josh Sherman
43aff106a0 Removed apache.conf as it was confusing folks. Updated config to not force secure connections. It's still highly recommended that you use secure connections, but sadly most folks aren't ready for that. 2011-03-30 23:29:34 -04:00
Josh Sherman
a7addc1ab0 Fixed selected attribute issue in option generation method. 2011-01-31 00:01:50 -05:00
Josh Sherman
98c5e97eac Added duration to injected messages to automatically destroy them. 2011-01-29 18:00:34 -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
477a16a863 Execute callback function after every AJAX call regardless of status (so you can execute a callback when returing an error). 2011-01-20 22:58:45 -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
Josh Sherman
bea6b0f645 Fixed issue when executing Model->commit() and no data has changed 2011-01-02 01:17:57 -05:00
Josh Sherman
4219813440 Stripped white space between folds, I found it too hard to read. 2011-01-02 01:06:32 -05:00
Josh Sherman
bef224d5ec Removed logic that interacted with passed IDs. This logic belongs in the .htaccess file (assuming it's even necessary for the site). 2010-12-26 14:27:45 -05:00
Josh Sherman
453d9b4033 Updated documentation. 2010-12-24 19:44:33 -05:00
Josh Sherman
97bd8163a2 Added comments. 2010-12-18 20:16:44 -05:00