Commit graph

63 commits

Author SHA1 Message Date
Joshua Sherman
ed90ee3501 Fixed issue with profilers always being to true 2014-01-22 11:56:17 -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
6f114361bd Updated copyright, website and contact email 2012-09-30 12:40:29 -04:00
Josh Sherman
ee175f4923 Added fuzzy environment match (via @geoffoliver) 2012-04-08 16:39:26 -04:00
Josh Sherman
d312d92033 Minification is now a configuration option, off by default 2012-02-24 23:22:27 -05: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
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
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
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
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
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
Josh Sherman
fba44a0be9 Updated class to support command line usage. 2010-12-04 14:29:15 -05:00
Josh Sherman
03567d86d4 Convert defined security levels into defined constants prefixed with SECURITY_LEVEL_*. Also documented the flatten method. 2010-11-21 21:44:46 -05:00
Josh Sherman
9a4fe84b9b Added timer capabilities to the profiler, refactored a bunch of the sanity checks associated with the profiler. 2010-10-22 22:26:45 -04:00
Josh Sherman
92e4b0391a Added profiler options. 2010-10-22 00:31:26 -04:00
Josh Sherman
2761352332 Added support for multiple host names in the config. 2010-10-18 23:35:15 -04:00
Josh Sherman
1cd61dda42 Updated licensing to use the [better suited] MIT License. 2010-10-14 20:12:40 -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
9fe5ce72d4 Building in security capabilities. 2010-10-06 00:01:49 -04:00
Josh Sherman
a38d58dfc1 Added support for multiple environments and config INIs. 2010-10-03 19:06:18 -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
7da7784ad7 Removed a @todo as it seemed irrelevant. 2010-08-15 21:44:29 -04:00
Josh Sherman
a48706da4b Removed whitespace. 2010-05-15 22:51:17 -04:00
Josh Sherman
ea6930bc23 Moved fatalError() from Controller to Error class.
* Renamed the method to fatal().

 * Added Error class, but I may be factoring it out and replacing it with strong dependency of PHP built-in Exceptions.

 * Cleaned up some other stuff too.
2010-03-30 22:28:20 -04:00
Josh Sherman
1eff5c3db7 Made INI the new PICKLES config standard
* SimpleXML was becoming a pain to maintain as there was differences between versions of PHP 5.x that prohibited me from being truely 5.0.0+ compliant.

 * The move to INI is because it's still good enough for PHP to use php.ini as a standard, and the support in PHP is built in and hasn't changed in a while

 * XML was also a bit bloated, and the point behind PICKLES is to kick the bloat.

 * May add support for a config file in pure PHP and/or JSON.

 * Added logic to prohibit the overriding of config variables.
2010-03-14 15:51:25 -04:00
Josh Sherman
7814b5dacb Updated @package name from pickles to PICKLES. 2010-03-12 23:42:21 -05:00
Josh Sherman
4e8691507d Added module() method.
* Pulls the value of site->module.

 * Also fixed some variable typos in the disabled() method.
2010-03-11 22:19:37 -05:00
Josh Sherman
b304e0c89b Added disabled() method. 2010-03-11 21:24:39 -05:00
Josh Sherman
04501f2a39 Updated Config class
* Removed extends information as the Config class is an orphaned singleton.
2010-03-11 21:00:33 -05:00
Josh Sherman
68ac2196a3 Refactored Config class.
* Config is now a Singleton.

 * Getter methods were removed, use $config->value instead.
2010-03-11 20:58:28 -05:00
Josh Sherman
24cdc5bdd9 Fixed file permissions 2010-03-09 19:47:20 -05:00
Josh Sherman
d267b214ea Lotsa updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@139 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-07-09 03:58:47 +00:00
Josh Sherman
466c35a6bb Massive update that broke backwards compatibility with older versions of PICKLES.
git-svn-id: http://svn.cleancode.org/svn/pickles@109 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-03-19 05:07:20 +00:00
Josh Sherman
54fea0d023 Updates to make shared modules work, code refactoring and such.
git-svn-id: http://svn.cleancode.org/svn/pickles@83 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-22 21:15:29 +00:00
Josh Sherman
42e316fc05 Shit ton of updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@81 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-20 01:03:00 +00:00
Josh Sherman
b53f52ac1e Changes.
git-svn-id: http://svn.cleancode.org/svn/pickles@79 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-18 13:42:10 +00:00
Josh Sherman
47b3271bde Updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@76 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-15 12:51:26 +00:00
Josh Sherman
d2d6c47682 Changed the core Object to not require any params in the constructor, and now we rely on polymorphism in the classes themselves to override that.
git-svn-id: http://svn.cleancode.org/svn/pickles@74 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-14 13:27:26 +00:00
Josh Sherman
9bdd0b3045 Cleaned up white space, also updated the RSS viewer to not use Config::getInstance()
git-svn-id: http://svn.cleancode.org/svn/pickles@71 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-11 21:59:42 +00:00
Josh Sherman
20fd236cb0 Updated the Error class from a static class to an instantiatable one.
git-svn-id: http://svn.cleancode.org/svn/pickles@68 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-11 20:16:47 +00:00
Josh Sherman
ecf86b9818 Removed the Singleton class, removed the ImageUtils class (for now) and switched the DB class to be an instantiated object and not a Singleton.
git-svn-id: http://svn.cleancode.org/svn/pickles@67 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-10 01:56:17 +00:00
Josh Sherman
e9f8b555d3 Quite possibly the largest commit in PICKLES history, shy of perhaps the initial revision. Bunches of restructuring and refactoring and all that.
git-svn-id: http://svn.cleancode.org/svn/pickles@61 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-09 05:12:31 +00:00
Josh Sherman
fcf1ffde4e Updated the Config class to use objects instead of an array (overriding __get() saved some effort). Also refactored some code, and updated the controller (partially) to handle shared models.
git-svn-id: http://svn.cleancode.org/svn/pickles@60 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-04 23:48:03 +00:00
Josh Sherman
d38196073a Made a bunch of changes, as per usual.
git-svn-id: http://svn.cleancode.org/svn/pickles@59 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-03 01:37:45 +00:00
Josh Sherman
e02ded351d Updates all over. Redid some of the doc blocks cause they weren't to scale of a vim session with lline numbers on (still may not be... ugh). Also changed around some of the model level variables and stuff.
git-svn-id: http://svn.cleancode.org/svn/pickles@58 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-24 03:37:09 +00:00
Josh Sherman
5390e37612 Ditched the POS Session class in favor of just interacting with the session directly. Added more to the store / cart.
git-svn-id: http://svn.cleancode.org/svn/pickles@56 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-23 02:21:55 +00:00
Josh Sherman
1784514696 Massive amounts of documentation has been added.
git-svn-id: http://svn.cleancode.org/svn/pickles@55 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-22 01:43:18 +00:00
Josh Sherman
cbcfc9cc4f Removed the final hardcoded paths, changed the reload logic in the Config class, and updated the controller to pass the config file name, not the config file short name.
git-svn-id: http://svn.cleancode.org/svn/pickles@54 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-19 02:52:59 +00:00