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
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
97bd8163a2
Added comments.
2010-12-18 20:16:44 -05:00
josh
f0c3435a0b
Fixed issues with defaulting the array to the conditionals.
2010-12-18 01:20:40 -05:00
Josh Sherman
261b2546e7
Added better support for hyphens in a URI.
2010-12-17 23:55:28 -05:00
Josh Sherman
346c93e393
Added some comments.
2010-12-17 22:38:40 -05:00
Josh Sherman
25e78fc569
Updated replacement logic to be strict, just in case there is a scenario where the string could be replaced more than once.
2010-12-17 22:30:55 -05:00
Josh Sherman
e008ffcf2b
Added redirect to force URI to be lowercase.
2010-12-17 22:18:25 -05:00
Josh Sherman
9c9407843e
Added support for boolean conditionals (IS [NOT] (TRUE|FALSE))
2010-12-12 21:42:58 -05:00
Josh Sherman
42af200c9b
Updated Model to use the model specific variables when generating the "all" query.
2010-12-12 21:04:36 -05:00
Josh Sherman
ede51db2d0
Fixed RegEx checking if we're dealing with internal files.
2010-12-11 13:41:09 -05:00
Josh Sherman
d638de26c0
Rearranged the methods and simplified the regex
2010-12-11 13:28:29 -05:00
Josh Sherman
20dc9da56c
Removed extra space when there are no additional parameters. Added new lines to the end of each HTML element (but not to options / optgroups). Added support for additional parameters on phone number inputs.
2010-12-11 13:12:53 -05:00
Josh Sherman
8fa5471aa7
Added private module functionality.
2010-12-09 22:52:26 -05:00
Josh Sherman
a72f49f2b4
Made options array non-case sensitive
2010-12-09 20:19:03 -05:00
Josh Sherman
89e2c3db19
Cleaned up stray whitespace.
2010-12-09 20:12:05 -05:00
josh
53ee689793
Changed the variable being checked to determine if code was being ran from the command line.
2010-12-06 20:49:15 -05:00