Commit Graph

566 Commits

Author SHA1 Message Date
Taylor Otwell 721693a52a Continuing work on URL class. 2011-07-25 13:25:47 -07:00
Taylor Otwell d48c5d186d Added comments to URL class. 2011-07-25 13:22:52 -07:00
Taylor Otwell 7f465f307b Refactoring URL class. 2011-07-25 13:19:39 -07:00
Taylor Otwell 3c216d897f Refactoring URL class. 2011-07-25 13:15:24 -07:00
Taylor Otwell 6e9bf0a0e3 URL::to_asset should use Request::is_secure to determine if asset link should use HTTPS. 2011-07-25 12:37:10 -07:00
Taylor Otwell 44db0e72f9 Refactoring the paginator class again... 2011-07-25 12:16:27 -07:00
Taylor Otwell dac63a50c6 Refactored the paginator class for cleanliness. 2011-07-25 12:00:16 -07:00
Taylor Otwell 8d2eefe18f Refactoring paginator. 2011-07-25 08:37:33 -07:00
Taylor Otwell 7ca5a2359a Added HTML::span method. 2011-07-25 08:37:01 -07:00
Taylor Otwell 79482dece5 added emulate prepares to pdo options. 2011-07-23 10:49:25 -05:00
Taylor Otwell 860c28206d Added closing div tag to paginator output. 2011-07-22 15:36:21 -07:00
Taylor Otwell bbfc8b888a Edited system/paginator.php via GitHub 2011-07-22 12:58:50 -07:00
Taylor Otwell 49fe1e3a87 Edited system/paginator.php via GitHub 2011-07-22 12:39:43 -07:00
Taylor Otwell faa4287423 Added support for generic PDO connections. 2011-07-22 12:21:39 -07:00
Taylor Otwell e0a8d173bd Add support for nested ul and ol lists. 2011-07-22 11:48:18 -07:00
Taylor Otwell 6b50e8b04d Correct typo in validator. 2011-07-22 11:40:16 -07:00
Taylor Otwell 9c4361fcfc Correct property name bug in validator. 2011-07-22 11:38:30 -07:00
Taylor Otwell 9f09af4a1b Add better language support to Validator. 2011-07-22 11:37:16 -07:00
Taylor Otwell 341908d76c Added secure and lang methods to paginator. 2011-07-22 11:34:44 -07:00
Taylor Otwell 36d9fe0b87 Added Form::open_secure and Form::open_secure_for_files 2011-07-22 11:28:04 -07:00
Taylor Otwell 64351b2268 Added HTML::link_to_secure_asset method. 2011-07-22 11:22:02 -07:00
Taylor Otwell 9b46956fc9 removed span method from html class. 2011-07-22 11:19:41 -07:00
Taylor Otwell 1c5187b509 removed span class from paginator class. 2011-07-22 11:18:27 -07:00
Taylor Otwell 4959a38d01 Adjusted paginator comment. 2011-07-22 09:57:01 -07:00
Taylor Otwell f0e3134442 Refactoring paginator class. 2011-07-22 09:55:11 -07:00
Taylor Otwell 677747c4ca Remove lang method from paginator class. 2011-07-22 09:54:06 -07:00
Taylor Otwell de48e194c7 Replace last_page method with property. 2011-07-22 09:52:00 -07:00
Taylor Otwell c09481c519 Refactoring the Paginator class. 2011-07-22 09:49:13 -07:00
Taylor Otwell f7f790301f Added lang method to Paginator. 2011-07-22 09:36:07 -07:00
Taylor Otwell be2b7fec0c Deprecate replace method in Lang class. 2011-07-22 09:21:05 -07:00
Taylor Otwell a23c6ab9c1 Do not strtolower request URI. 2011-07-22 08:53:28 -07:00
Taylor Otwell ca97abe77f Added http_only configuration item to session cookie. 2011-07-22 08:00:57 -07:00
Taylor Otwell ebd8bd55b2 added http_only option to cookie::put method. 2011-07-21 23:54:25 -05:00
Taylor Otwell d420d1c07f added language support for characters and kilobytes in validator library. 2011-07-21 23:39:09 -05:00
Taylor Otwell c1ca97d9fb added support for named views. 2011-07-21 23:30:52 -05:00
Taylor Otwell fbf1603b5a add comment about url::to_asset. 2011-07-21 22:07:43 -05:00
Taylor Otwell e9a43326a7 fix bug in validator class required check. 2011-07-21 22:00:23 -05:00
Taylor Otwell 49cd851f54 tweaked method signature to paginator links method. 2011-07-21 21:54:54 -05:00
Taylor Otwell d0b160c329 Fix bug causing non-required fields to throw errors in Validator class. 2011-07-21 11:03:44 -07:00
Taylor Otwell 89b5ad030e Added format parameter to Error->first method. 2011-07-21 11:00:19 -07:00
Taylor Otwell 539eb28c2c Refactoring Paginator. 2011-07-21 08:51:10 -07:00
Taylor Otwell 556fff9ff0 Added better language support for Pagination library. 2011-07-21 08:46:37 -07:00
Taylor Otwell 46a15cf857 Add more detail to pagination exception message. 2011-07-21 08:39:36 -07:00
Taylor Otwell b7ab358297 Added __toString method to Lang class. 2011-07-21 08:32:59 -07:00
Taylor Otwell 9f8e56d687 Added ability to pass replacements in Lang constructor. 2011-07-21 08:18:49 -07:00
Taylor Otwell 0f17aff723 Added "dots" class to paginator. 2011-07-21 07:52:43 -07:00
Taylor Otwell acc279989c Move last page logic into Paginator class. 2011-07-21 07:26:24 -07:00
Taylor Otwell b933b19dfd Refactoring query builder for pagination changes. 2011-07-21 07:25:54 -07:00
Taylor Otwell b2f92691a6 Refactoring Eloquent for pagination changes. 2011-07-21 07:25:32 -07:00
Taylor Otwell 2cdee7aff1 Refactoring pagination class. 2011-07-21 07:20:11 -07:00
Taylor Otwell 218783ecee Refactoring Query class pagination. 2011-07-21 07:17:53 -07:00
Taylor Otwell f7eeb85ec6 Refactoring Eloquent pagination. 2011-07-21 07:16:45 -07:00
Taylor Otwell b29ba692ce Refactoring Paginator. 2011-07-21 06:37:50 -07:00
Taylor Otwell 9a36124b9e Refactoring Paginator. 2011-07-21 06:37:10 -07:00
Taylor Otwell 7ec88d3faa Tweak pagination comment in Query class. 2011-07-21 06:36:36 -07:00
Taylor Otwell abd269aa78 initial version of pagination library. 2011-07-20 23:31:02 -05:00
Taylor Otwell 2b132512e8 Add comment regarding foreign and associated keys in eloquent. 2011-07-20 09:53:05 -07:00
Taylor Otwell dd729886f5 Fix has_and_belongs_to_many eager loading initialization bug. 2011-07-20 07:07:15 -07:00
Taylor Otwell 17cc50375b Added support for self-referential many-to-many relationships in Eloquent. 2011-07-20 06:57:34 -07:00
Taylor Otwell b4c7dcb9ea Added support for 'wrap' option. 2011-07-19 11:17:51 -07:00
Taylor Otwell e70726caea Added support for odbc connections. 2011-07-19 11:16:55 -07:00
Taylor Otwell 08010f4eb2 Edited system/router.php via GitHub 2011-07-19 06:23:16 -07:00
Taylor Otwell 3541c05ba2 added comment to route finder. 2011-07-18 23:06:34 -05:00
Taylor Otwell b6feff375b added comment regarding nested route directories. 2011-07-18 23:04:53 -05:00
Taylor Otwell fb8eb874c0 added comment regarding nested route directories. 2011-07-18 22:59:54 -05:00
Taylor Otwell 5b86ad6067 trim route finder iterator instantiation. 2011-07-18 22:49:25 -05:00
Taylor Otwell 44e8867672 tweaked route finder to recursive search directories. 2011-07-18 22:43:55 -05:00
Taylor Otwell 88276ba79e added support for nested route directories. 2011-07-18 22:21:07 -05:00
Taylor Otwell 109a7b4baa Refactoring Error class. 2011-07-18 11:34:04 -07:00
Taylor Otwell ce20d7b9e3 Remove special handling for error views. No longer needed. 2011-07-18 11:33:01 -07:00
Taylor Otwell c54173bc40 Remove View::$last. 2011-07-18 11:32:27 -07:00
Taylor Otwell dc49a4aaeb Simplify router code. 2011-07-18 06:17:21 -07:00
Taylor Otwell 72658bd09a fixed bug in validator->image rule. 2011-07-16 22:16:40 -05:00
Taylor Otwell 4d647c33c0 cleaning up validation library. 2011-07-16 21:56:40 -05:00
Taylor Otwell 808543844d fix typo in validator class comment. 2011-07-16 19:37:30 -05:00
Taylor Otwell da1715fb76 removed unnecessary binding code. 2011-07-16 19:28:41 -05:00
Taylor Otwell 55a201ac61 fixed bug in route finder when looking for routes in route directory. 2011-07-16 13:48:38 -05:00
Taylor Otwell 60ff3bf840 add form::close. 2011-07-16 10:22:57 -05:00
Taylor Otwell f9c4c50436 add Form::hidden and Form::text. 2011-07-16 10:09:02 -05:00
Taylor Otwell 70cba4ebe2 removed null handling code in db::query until further confirmation of bug is received. 2011-07-16 08:19:36 -05:00
Taylor Otwell 514c128957 Fixed bug in bindings that was causing null to be saved as 0 in MySQL. 2011-07-14 06:30:07 -07:00
Taylor Otwell 121a15bbcf refactored route parameter parsing tests. 2011-07-13 23:24:22 -05:00
Taylor Otwell cffbcd010d changed continue to return in validation library. 2011-07-13 20:59:51 -05:00
Michael Hasselbring 36fe006b08 Created Validator::make() 2011-07-13 19:40:55 -05:00
Taylor Otwell 230af4125d added optional parameters to routes. 2011-07-13 17:29:57 -05:00
Taylor Otwell 398a5bb41a added support for optional route parameters. 2011-07-13 17:28:42 -05:00
Taylor Otwell 03044c7d4c Refactoring router. 2011-07-13 13:13:18 -07:00
Taylor Otwell 6c6f92a7c9 Added default value to URL::to_asset method. 2011-07-13 11:03:22 -07:00
Taylor Otwell c3b8524e1b rewrote validation library. 2011-07-12 20:04:14 -05:00
Taylor Otwell bbc45f92b7 added PHPass to system/vendor. 2011-07-11 21:58:51 -05:00
Taylor Otwell c95e7fdbbe Refactor router to use routes.php as the default routes for all requests, even when using a routes directory. 2011-07-11 13:38:07 -07:00
Taylor Otwell 0d2cfd2417 Refactor Auth class to use Auth config closures. 2011-07-11 12:42:19 -07:00
Taylor Otwell 757e1280a8 Refactor Auth class to use new bcrypt hashing. 2011-07-11 12:25:12 -07:00
Taylor Otwell 427fe62568 Refactor hash class to use PHPass. 2011-07-11 12:15:06 -07:00
Taylor Otwell a6d1449b40 deprecated log class. removed from aliases. added storage/log.txt. 2011-07-11 12:33:22 -05:00
Taylor Otwell 8053d8e954 Call the configuration "logger" when writing logs in the error class. 2011-07-11 09:57:20 -07:00
Taylor Otwell 3f20c10d02 Order the exception CSS. 2011-07-11 09:18:59 -07:00
Taylor Otwell 44d14df331 Added note to Route\Finder. 2011-07-11 09:17:30 -07:00
Taylor Otwell 4b25d9e4d2 Refactor exception view. 2011-07-11 08:40:11 -07:00
Taylor Otwell 4fc4d04028 Improved error exception view. 2011-07-11 08:39:20 -07:00
Taylor Otwell 54311a41ce Added file context to error class. 2011-07-11 08:38:49 -07:00
Taylor Otwell 69d1377fd4 Refactoring the error class. 2011-07-11 07:47:23 -07:00
Taylor Otwell 5eb379d6cc Refactoring the session class. 2011-07-11 07:05:46 -07:00
Taylor Otwell 15328afa4d refactoring auto-loader. 2011-07-10 23:45:38 -05:00
Taylor Otwell c75f298c34 fix typo in error class. 2011-07-10 23:36:49 -05:00
Taylor Otwell c30185eb27 refactoring eloquent. 2011-07-10 23:31:37 -05:00
Taylor Otwell 95528adab5 fix syntax error in error class. 2011-07-10 23:16:11 -05:00
Taylor Otwell 063cde50c0 removed file context from error messages. 2011-07-10 23:08:14 -05:00
Taylor Otwell 46b0a7d8ad removed some comment bloat from the Form class. 2011-07-10 22:59:05 -05:00
Taylor Otwell da8c412dbc deprecated text class. 2011-07-10 22:38:55 -05:00
Taylor Otwell d0ba4719d8 extracted the route wildcard translation to a separate method. 2011-07-09 23:54:07 -05:00
Taylor Otwell 8277694693 refactoring router. 2011-07-09 23:41:27 -05:00
Taylor Otwell 141bed3916 cleaning up Request::uri method. 2011-07-09 22:31:06 -05:00
Taylor Otwell ca58f80b22 removed cache and session factories. moved cache item management into cache class and out of drivers. tweaked auth class. 2011-07-09 22:15:42 -05:00
Taylor Otwell ceb0e1a807 added check for array in Request::spoofed. 2011-07-09 17:15:23 -05:00
Taylor Otwell 9608a0dee7 Removed comment bloat from View class. 2011-07-08 12:57:32 -07:00
Taylor Otwell 924ecf879c Added __toString method to Response. 2011-07-08 12:57:11 -07:00
Taylor Otwell e48d611149 Remove comment bloat from URL class. 2011-07-08 12:48:44 -07:00
Taylor Otwell 5ea2974bd6 Trim comment bloat from Route class. 2011-07-08 12:46:21 -07:00
Taylor Otwell 0dd06ad314 Remove comment bloat from Response class. 2011-07-08 12:45:06 -07:00
Taylor Otwell 9fc8c36b94 Removing comment bloat from Redirect class. 2011-07-08 12:44:25 -07:00
Taylor Otwell 5bea9121af Refactoring input class to use Request::spoofed when hydrating input. 2011-07-08 12:41:03 -07:00
Taylor Otwell 5bb5adcf9c Added Request::spoofed method. 2011-07-08 12:38:54 -07:00
Taylor Otwell d0fafd1301 Formatting DB class. 2011-07-08 12:16:30 -07:00
Taylor Otwell 8056e0d1a7 Moved Session\Factory functionality into the Session class. 2011-07-08 09:48:01 -07:00
Taylor Otwell b1b2b932cc Moved Cache\Factory functionality into Cache class. 2011-07-08 09:43:04 -07:00
Taylor Otwell c5a2752e8a Refactoring Input class. 2011-07-08 08:24:57 -07:00
Taylor Otwell c2b7e60bdd Cleaning up DB session driver. 2011-07-08 08:19:40 -07:00
Taylor Otwell 7af9e08a60 Refactoring Eloquent. 2011-07-08 08:00:04 -07:00
Taylor Otwell c4eb994fbc Refactoring Eloquent. 2011-07-08 07:58:28 -07:00
Taylor Otwell 8b1fe5920b Refactoring Eloquent\Hydrator. 2011-07-08 07:54:38 -07:00
Taylor Otwell 745ac394bb Adjust Eloquent\Hydrator to pass array of columns into Query->get method. 2011-07-08 07:37:50 -07:00
Taylor Otwell a0195e9386 Adjust Eloquent to pass array of columns when selecting. 2011-07-08 07:36:20 -07:00
Taylor Otwell 00b064c7d5 Revert previous changes to Eloquent. 2011-07-08 07:32:25 -07:00
Taylor Otwell 16265a2cf6 Adjust Eloquent to use new Query API. 2011-07-08 07:31:15 -07:00
Taylor Otwell 787be6bc99 Changed Query::get and Query::first to accept arrays of columns instead of a dynamic parameter list. 2011-07-08 07:28:38 -07:00
Taylor Otwell 21efdbf69b Remove insert and update methods from Eloquent. 2011-07-08 07:13:30 -07:00
Taylor Otwell 666ebf2119 Refactoring Eloquent class. 2011-07-08 07:09:43 -07:00
Taylor Otwell 743cf6f44a Refactoring DB\Eloquent. 2011-07-08 06:56:29 -07:00
Taylor Otwell e6e7586dbc Refactoring DB\Connector. 2011-07-08 06:48:31 -07:00
Taylor Otwell 6c51536d7d Remove check for items in Memcached cache driver. 2011-07-08 06:45:38 -07:00
Taylor Otwell de19b8db40 Remove check for items in File cache driver. 2011-07-08 06:45:15 -07:00
Taylor Otwell 24fefe9eb2 Remove check for items in APC driver. 2011-07-08 06:44:54 -07:00
Taylor Otwell 44a48256c7 Allow cache class to look for existing items in driver's items array. 2011-07-08 06:43:02 -07:00
Taylor Otwell 82d5760a32 Make items array public on Memcached cache driver. 2011-07-08 06:40:49 -07:00
Taylor Otwell 967428c441 Make items array public on File cache driver. 2011-07-08 06:40:20 -07:00
Taylor Otwell ec43d5dd03 Make item array public on APC cache driver. 2011-07-08 06:39:58 -07:00
Taylor Otwell bbc8b8f954 Refactoring View class. 2011-07-08 06:37:50 -07:00
Taylor Otwell 767a49f54b Tweaking comments in URL class. 2011-07-08 06:35:42 -07:00
Taylor Otwell 60c9c91516 Trimming comment bloat from Route class. 2011-07-08 06:28:41 -07:00
Taylor Otwell a86d4477ca refactoring redirect class. 2011-07-07 23:55:27 -05:00
Taylor Otwell ea6b58b28c refactoring lang class. 2011-07-07 23:48:05 -05:00
Taylor Otwell c5ddb67d6b added comment to hash class. 2011-07-07 23:43:54 -05:00
Taylor Otwell 6d296f2a1d added comment to file class. 2011-07-07 23:42:11 -05:00
Taylor Otwell 6a77a98f95 refactored error and file classes. 2011-07-07 23:40:29 -05:00
Taylor Otwell 4b063ac042 refactoring database and connector classes. 2011-07-07 23:35:23 -05:00
Taylor Otwell 77d65b89cb refactoring crypt class. 2011-07-07 23:24:43 -05:00
Taylor Otwell 6e93237ec9 refactoring config class. 2011-07-07 23:16:52 -05:00
Taylor Otwell 8203bd9af5 refactoring cache class. 2011-07-07 23:07:44 -05:00
Taylor Otwell 22c1353cea added comment to auth class. 2011-07-07 23:01:44 -05:00
Taylor Otwell 70e35fb3d7 refactoring auth class. 2011-07-07 23:00:40 -05:00
Taylor Otwell 06cb63f502 removed route\loader and route\parser classes. 2011-07-07 22:55:27 -05:00
Taylor Otwell ad824341a6 fixed bug in input class causing entire array to not be returned. 2011-07-07 22:30:15 -05:00
Taylor Otwell 5475048749 Add comment to Redirect class. 2011-07-07 12:41:18 -07:00
Taylor Otwell 59e5cfc711 Fixing comments on Router class. 2011-07-07 12:18:53 -07:00
Taylor Otwell 5a67571020 Refactoring the Router class. 2011-07-07 12:17:55 -07:00
Taylor Otwell 94ccbffb7d Refactoring Router class. 2011-07-07 11:55:09 -07:00
Taylor Otwell 80c746edb2 Refactor route parameter parsing. 2011-07-07 11:38:30 -07:00
Taylor Otwell b5e0eb022c Refactoring Router. 2011-07-07 09:49:31 -07:00
Taylor Otwell 654c4aa85f Removed comment bloat from Route\Filter. 2011-07-07 09:38:48 -07:00
Taylor Otwell 7a8e04cbdd Added comment to Router class. 2011-07-07 09:37:14 -07:00
Taylor Otwell f0b02caaec Refactoring Router. 2011-07-07 09:34:58 -07:00
Taylor Otwell 775f11e09b Refactoring Route\Finder. 2011-07-07 09:24:40 -07:00
Taylor Otwell 0767fa5027 Remove comment bloat from Route\Finder. 2011-07-07 09:17:31 -07:00
Taylor Otwell 1a4a7cbbab Make the Router::load method public. 2011-07-07 09:12:20 -07:00
Taylor Otwell c2e1ef68ad Refactor Router class, deprecate Route\Loader and Route\Parser. 2011-07-07 09:09:20 -07:00
Taylor Otwell c1e2f3cf90 Remove comment bloat from Route\Loader class. 2011-07-07 08:59:46 -07:00
Taylor Otwell 0d48fba1be Remove comment bloat from Route\Finder class. 2011-07-07 08:57:30 -07:00
Taylor Otwell ae9824f80b Remove comment bloat from Route\Filter class. 2011-07-07 08:53:05 -07:00
Taylor Otwell a5af988d53 Remove comment bloat from dynamic query builder. 2011-07-07 08:51:52 -07:00
Taylor Otwell 34605ad49d Remove comment bloat from Eloquent hydrator. 2011-07-07 08:49:59 -07:00
Taylor Otwell bc8c0f2cc7 Refactor Query class. Remove comment bloat. 2011-07-07 08:45:37 -07:00
Taylor Otwell 98a691fa58 Remove comment bloat from Eloquent. 2011-07-07 08:28:42 -07:00
Taylor Otwell 60e3526313 Refactor DB\Connector class. 2011-07-07 08:15:18 -07:00
Taylor Otwell 9454927bd3 Added Cache::maybe method. 2011-07-07 08:04:29 -07:00
Taylor Otwell 1d96b96828 Force memcached cache driver to return null as default. 2011-07-07 07:42:06 -07:00
Taylor Otwell a29e76f27b Force File cache driver to return null when items are expired. 2011-07-07 07:41:39 -07:00
Taylor Otwell 577066e07e Tweak file cache driver to return null as default. 2011-07-07 07:40:42 -07:00
Taylor Otwell 9927e3ed4e Tweak APC cache driver to return null for default value. 2011-07-07 07:39:48 -07:00
Taylor Otwell 3eeb69d1bf Remove default value from cache driver interface. 2011-07-07 07:39:26 -07:00
Taylor Otwell aaae1acb34 Refactor cache class. Fix driver instantiation bug. Allow closures as default parameter. 2011-07-07 07:38:59 -07:00
Taylor Otwell 715bed748d Add support for closures to File cache driver. 2011-07-07 07:29:16 -07:00
Taylor Otwell ac38876e34 Add support for closures in APC cache driver. 2011-07-07 07:28:03 -07:00
Taylor Otwell 4a4a79ce34 Remove comment bloat from Validator class. 2011-07-07 07:24:28 -07:00
Taylor Otwell 42cff59a7d Remove comment bloat from View class. 2011-07-07 07:22:50 -07:00
Taylor Otwell 2f999397e3 Trim comment bloat from URL class. 2011-07-07 07:21:15 -07:00
Taylor Otwell a2406c0174 Trim comment bloat in Text class. 2011-07-07 07:18:45 -07:00
Taylor Otwell 5755fdaba0 Refactor Str::pool method. 2011-07-07 07:16:20 -07:00
Taylor Otwell c50246c694 Refactoring Str class. 2011-07-07 07:14:57 -07:00
Taylor Otwell 607b23b742 Refactoring Session class. Trimmed comment bloat. Added support for closures on Session::get default value. 2011-07-06 15:07:18 -07:00