Commit graph

122 commits

Author SHA1 Message Date
Josh Sherman
92e4b0391a Added profiler options. 2010-10-22 00:31:26 -04:00
Josh Sherman
5ea7756803 Added private templates via the __shared directory. 2010-10-20 01:06:11 -04:00
Josh Sherman
013fa77ec2 Added sanity check on variable. 2010-10-18 23:34:42 -04:00
Josh Sherman
2d466d98e7 Gave the controller some more smarts with the ability to detect requests for internal files and pass them through. Used to use the Javascript and CSS that is provided in PICKLES without the need of copying the files into the public scope, symlinking or Apache aliasing. 2010-10-17 23:10:48 -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
0a6c124302 Fixed some issued with PHP <5.3, added more built in profiling and ditched the Singleton class (related to <5.3 issues). 2010-10-03 23:07:48 -04:00
Josh Sherman
9b4763dd23 Removed whitespace. 2010-10-03 15:16:01 -04:00
Josh Sherman
9bf37c37ec Profiler, Phase 1. 2010-10-01 01:12:37 -04:00
Josh Sherman
afe82e3da3 Fixed the redirect URL variable. 2010-09-26 23:17:52 -04:00
Josh Sherman
b210803e81 Added the Form class and updated the configuration arrangement. 2010-09-26 20:07:50 -04:00
Josh Sherman
6bd87d270d Refactored a bunch of the display logic, added handling to avoid the infinite redirect loop in the controller. 2010-09-19 19:13:11 -04:00
Josh Sherman
4307594ab5 Expanding error handling with a custom handler. All errors are converted to exceptions for easier handling and to help save time because you won't have to type out a bunch of crazy sanity checks, just try/catch FTW. 2010-09-19 12:27:55 -04:00
Josh Sherman
17d5738e77 Updated module CSS class name to replace invalid class name characters with - 2010-09-19 10:29:18 -04:00
Josh Sherman
a48706da4b Removed whitespace. 2010-05-15 22:51:17 -04:00
Josh Sherman
fcc6533be7 Updated the paths. 2010-05-15 22:39:25 -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
b1d7ef7645 Added better error handling
* Nice HTML output for errors

 * Cleaned up some @todo's while creating some new ones

 * Added a method for setting the request variable for the module that only the Controller can use

 * Fixed that nasty infinite loop, even though it's not ideal yet.
2010-03-28 23:05:46 -04:00
Josh Sherman
ddafcd54d7 Added return type switching.
* Uncommented the return type logic in the controller and implemented it (no sanity checking on if the return type is valid as per the module)

 * Cleaned up some @todo's in the Controller class

 * Added the XML Display class
2010-03-26 21:12:54 -04:00
Josh Sherman
8480ebdb9e Added CSS class and JS file to the template scope. 2010-03-24 20:02:11 -04:00
Josh Sherman
8c1ecea92b Refactored Smarty display logic. 2010-03-15 23:57:36 -04:00
Josh Sherman
efad51e92f Refactoring Display logic.
* Revamping the display logic, lots of code is being removed / streamlined.
2010-03-14 18:42:13 -04:00
Josh Sherman
7814b5dacb Updated @package name from pickles to PICKLES. 2010-03-12 23:42:21 -05:00
Josh Sherman
012c3f8717 Refactoring Display logic 2010-03-12 00:02:29 -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
f045a0cd05 Updated comments.
* Updated DocBlock header.
2010-03-10 00:12:19 -05:00
Josh Sherman
c471a7aa3f Updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@144 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-07-29 01:16:49 +00: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
21e2c997ce Commiting changes before I go trying to implement PHPUnit.
git-svn-id: http://svn.cleancode.org/svn/pickles@138 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-07-07 00:57:26 +00:00
Josh Sherman
efb5b6a677 Ugh, tired.
git-svn-id: http://svn.cleancode.org/svn/pickles@135 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-06-15 02:24:48 +00:00
Josh Sherman
fab27b3332 Added the SILK icon set, also added the affiliate admin stuff.
git-svn-id: http://svn.cleancode.org/svn/pickles@110 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-03-24 04:26:36 +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
3da623cb42 Resolved the naming issues of modules.
git-svn-id: http://svn.cleancode.org/svn/pickles@86 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-01-09 04:22:21 +00:00
Josh Sherman
c6af785100 Latest and greatest.
git-svn-id: http://svn.cleancode.org/svn/pickles@85 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-12-31 02:45:40 +00:00
Josh Sherman
8fc09876cf Committing to try to fix this shit.
git-svn-id: http://svn.cleancode.org/svn/pickles@84 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-12-24 23:13:55 +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
d6d774e04b Commit for the hell of it.
git-svn-id: http://svn.cleancode.org/svn/pickles@78 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-18 01:57:53 +00:00
Josh Sherman
52b58b81e7 Swapped out str_replace() for strtr()
git-svn-id: http://svn.cleancode.org/svn/pickles@77 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-17 19:16:55 +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
e0e0ab0aeb Coded the PHP viewer, removed the Debug viewer to be replaced by a debug option that will trigger the debug mode on any viewer. Also added globals for the available viewers to help alleviate any naming inconsistencies. Also updated the pickle script to generate a more reduced index.php file.
git-svn-id: http://svn.cleancode.org/svn/pickles@75 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-14 19:26:10 +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
b25ba0992a Swapped out the Mail class for the Mailer class (it's better and smarter)
git-svn-id: http://svn.cleancode.org/svn/pickles@70 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-11 21:42:46 +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