Commit graph

215 commits

Author SHA1 Message Date
Juan Basso
2a50a1ea99 Included @var in API that was missing. 2011-07-31 17:05:20 -04:00
Juan Basso
9bc3e567c1 Removed the @access and @static. 2011-07-30 20:56:48 -04:00
Juan Basso
db80fe27e1 Changed the visibility to protected. 2011-07-30 20:00:19 -04:00
Juan Basso
e4a1816557 Changed the signature of methods to avoid strict messages. 2011-07-30 19:17:20 -04:00
Juan Basso
9e75de2f28 Fixed some API doc in core and utility folders. 2011-07-28 23:33:17 -04:00
Juan Basso
a0ee8b49fe Fixed some API doc in console. 2011-07-28 22:05:29 -04:00
Jose Lorenzo Rodriguez
cfd2d9e00b Updating all @package annotations in doc blocks 2011-07-26 01:46:14 -04:30
mark_story
173e043eaf Fixing more failing tests caused by requestAction
and changes in Controller::__construct.
2011-07-22 20:29:44 -04:00
Jose Lorenzo Rodriguez
108505a6a0 Merge branch '2.0-form-helper' into 2.0 2011-07-16 17:32:07 -04:30
Jose Lorenzo Rodriguez
c6c1bf110d Fixing caching of class loading in App class, this was broken after a recent refactoring
Additionally a new property $bootstrapping is added to App, this is set during the bootstrap process to indicate that classes loaded before the caching is initialized should not trigger the cache write routine.
Performance++
2011-07-15 20:44:39 -04:30
Jose Lorenzo Rodriguez
a02db65fd1 Removing persist object feature, it was problematic an incomplete 2011-07-15 18:30:03 -04:30
Jose Lorenzo Rodriguez
8a6d97dfa7 Fixing loading of default options in CakePlugin::loadAll(), fixes #1737 2011-07-15 01:05:53 -04:30
Jose Lorenzo Rodriguez
f8ab1d3c73 Adding App::location() method to be able to obtain the defined path for a class 2011-07-12 00:38:50 -04:30
Leonid Mamchenkov
a1f47a803a Added paths for Controller/Component/Auth (ticket #1757) 2011-06-22 16:28:39 +03:00
Juan Basso
1c7d54eacc Updated the paths from comments. 2011-06-19 20:28:40 -04:00
Maggion Emmanuel
21ba5a856f Fixing documentation 2011-06-05 02:59:54 -07:00
ADmad
6c8b7fd878 Fixing locales lookup folder name. Closes #1744 2011-06-05 02:46:02 +05:30
mark_story
2650bd4639 Adding missing import that causes a fatal error when a deep
value is written to Configure early on.
Fixes #1753
2011-06-02 21:05:10 -04:00
Juan Basso
192812ee7f Updating the copyright to 2011. 2011-05-30 22:32:43 -04:00
ADmad
4c042ae133 Adding proper visibility keywords for class functions 2011-05-29 03:31:34 +05:30
Ceeram
266058e67a Moving the sort to also sort plugin objects, sorting in test removed 2011-05-26 19:33:36 +02:00
Ceeram
cea4e4e98e Sort objects before storing 2011-05-26 19:16:17 +02:00
Ceeram
5f97292648 Change case of Controller::$plugin, fixing missing plugin exceptions, tests updated. Also removing no longer needed camelize() calls 2011-05-26 15:31:40 +02:00
Jose Lorenzo Rodriguez
a05607856a Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-05-23 11:05:33 -04:30
Jose Lorenzo Rodriguez
1e7bf963c3 Removing unused function App::setObjects() 2011-05-23 11:03:11 -04:30
Ceeram
37fcfb9c86 reset objects when using App::build() with App::RESET 2011-05-23 11:34:13 +02:00
Jose Lorenzo Rodriguez
8d52907be7 Merge remote-tracking branch 'origin/2.0' into 2.0 2011-05-22 21:55:07 -04:30
Jose Lorenzo Rodriguez
5b8865a3a7 Making plugin routes load after app routes, closes #1722 2011-05-22 21:50:56 -04:30
mark_story
68482be3f1 Updating path to match the one found in the repository. 2011-05-22 22:04:08 -04:00
mark_story
85752e21c1 Removing undefined variable use.
Making the plugin path match the old plugins directory.
2011-05-22 22:04:08 -04:00
AD7six
d63b4df10c ensure consistent order for loaded function
Fixes the test case
2011-05-17 00:01:20 +02:00
AD7six
8e27cf992f correct a few missing constant replacements 2011-05-15 18:49:38 +02:00
AD7six
0cb70ae3bb remove CONFIGS constant 2011-05-15 18:34:52 +02:00
AD7six
afa8f6b441 remove LIBS constant
libs always means the Cake lib - so use the CAKE constant
2011-05-15 18:29:52 +02:00
Jose Lorenzo Rodriguez
6713bb154e Making themes also CamelCased 2011-05-15 00:09:32 -04:30
Jose Lorenzo Rodriguez
eea981940e Replacing config string in favor of Config 2011-05-13 03:36:45 -04:30
Jose Lorenzo Rodriguez
ded3cb4826 Renaming more folders 2011-05-13 02:31:33 -04:30
Jose Lorenzo Rodriguez
54eb934892 Fixing plugin related tests in Core package 2011-05-10 00:46:24 -04:30
Jose Lorenzo Rodriguez
2fab0b0e1c Improving CakePlugin::loaded() to accept a plugin name as first parameter 2011-05-08 23:19:00 -04:30
Jose Lorenzo Rodriguez
77788a965d Merge remote-tracking branch 'origin/2.0' into 2.0-plugin-loader
Conflicts:
	lib/Cake/tests/test_app/plugins/TestPlugin/Model/test_plugin_post.php
	lib/Cake/tests/test_app/plugins/test_plugin/Model/TestPluginPost.php
	lib/Cake/tests/test_app/plugins/test_plugin/Model/test_plugin_post.php
2011-05-08 22:08:31 -04:30
Jose Lorenzo Rodriguez
0573037f2c Migrating all View tests to the new plugin loader 2011-05-06 01:07:59 -04:30
Jose Lorenzo Rodriguez
f18b9aae7b Unloading all plugins with App::build() and $reset parameter is true 2011-05-06 01:05:33 -04:30
Jose Lorenzo Rodriguez
27a134de4f Implementing CakePlugin::loadAll() 2011-05-06 00:53:30 -04:30
ADmad
7fc5e8f810 Fixing typo 2011-05-03 01:01:33 +05:30
ADmad
1cb0e413be Enhancing App::build() to allow appending paths. Closes #1680 2011-05-01 20:54:52 +05:30
ADmad
75437b45d9 Fixed error where App::import() failed to load new class types added in 2.0. Also fixed couple of test cases. 2011-05-01 03:19:44 +05:30
Jose Lorenzo Rodriguez
f6a5df913a Moving test plugins to the new naming convention> Now plugin names should be camel cased 2011-04-29 12:49:46 -04:30
evilbloodydemon
df57b15f89 Removed undefined variable in App::core, made test pass on Windows.
Signed-off-by: mark_story <mark@mark-story.com>
2011-04-26 22:18:51 -04:00
Jose Lorenzo Rodriguez
4f1a6baf87 Fixing some errors in the new plugin loader and adding some tests 2011-04-26 00:56:19 -04:30
Jose Lorenzo Rodriguez
8053436b35 Fixing some parse errors 2011-04-25 22:42:33 -04:30
Jose Lorenzo Rodriguez
64db00706e Merge remote branch 'origin/2.0' into 2.0-plugin-loader 2011-04-23 23:25:31 -04:30
evilbloodydemon
b6c4b8abb5 Unused variables in Core removed 2011-04-23 00:02:05 +04:00
Jose Lorenzo Rodriguez
495611b313 Fixing location of shared plugins folder 2011-04-22 15:14:37 -04:30
Jose Lorenzo Rodriguez
8dc675335a Small refactoring, and adding some App::uses() to avoid problems 2011-04-21 17:56:03 -04:30
Jose Lorenzo Rodriguez
c504535980 Stating to implement a CakePlugin class to allow the inclusion of bootraping files for plugins 2011-04-17 01:37:31 -04:30
Jose Lorenzo Rodriguez
000e05b468 Merge remote-tracking branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	cake/libs/view/helpers/js.php
	cake/tests/lib/templates/missing_conenction.php
	cake/tests/lib/templates/missing_connection.php
	lib/Cake/Model/ConnectionManager.php
	lib/Cake/TestSuite/templates/missing_conenction.php
	lib/Cake/View/Helper/FormHelper.php
	lib/Cake/tests/Case/Core/ConfigureTest.php
2011-04-11 22:48:08 -04:30
Jose Lorenzo Rodriguez
6737380deb Partial migration of folders to camelcase in app 2011-03-22 00:46:51 -04:30
AD7six
32df3156a7 consolidate cake_error and cake_developer to simply "cake_dev"
it's a lot easier for adding new translations to think:
	is it for the end user?
		use 'cake' as the domain
	is it for the developer
		use 'cake_dev' as the domain
	is it for the console
		use 'cake_console' as the domain

also neatly avoids the "this message is an error, and it's in
cake_developer, why?" - question (because cake_error was intended for
anything which is used in trigger_error/exceptions, not a variable named
$error
2011-03-20 16:38:31 +01:00
AD7six
b19ca3c95e using the domain cake_error for messages intended for the developer 2011-03-19 18:09:58 +01:00
AD7six
b90939f659 documentation correction 2011-03-19 17:51:46 +01:00
AD7six
39c7d03319 Merge branch '2.0-class-loading' into 2.0-translations
Conflicts:
	lib/Cake/Console/Command/Task/ControllerTask.php
	lib/Cake/Console/Command/Task/ProjectTask.php
	lib/Cake/Core/Configure.php
	lib/Cake/View/pages/home.ctp
2011-03-16 12:29:39 +01:00
Jose Lorenzo Rodriguez
3f7928fccc Changing paths againg form datasources sub packages,
Updating database.php.default file
Fixing view generation task
2011-03-16 00:14:37 -04:00
Jose Lorenzo Rodriguez
bd2bd4ba22 Udating skel directory, doc blocs and the location of the Console package 2011-03-15 21:53:42 -04:00
Jose Lorenzo Rodriguez
0cd51de827 Merge remote-tracking branch 'origin/2.0' into 2.0-class-loading 2011-03-12 23:49:02 -04:30
AD7six
d264d0feb5 changes in the core dir 2011-03-12 20:00:15 +01:00
Jose Lorenzo Rodriguez
ecc6a22b3b Adding tests for loading classes from the libs folder 2011-03-12 01:56:34 -04:30
Jose Lorenzo Rodriguez
fd84b1494d Documenting remaining methods in App class 2011-03-12 01:15:56 -04:30
Jose Lorenzo Rodriguez
d890896777 Updating Lib package usage in App::load() 2011-03-12 00:40:43 -04:30
Jose Lorenzo Rodriguez
fea2ac23c7 Improving Documentation in App class 2011-03-12 00:09:58 -04:30
Jose Lorenzo Rodriguez
fe52c200e3 Documenting auxiliary functions in App class 2011-03-11 23:30:16 -04:30
Jose Lorenzo Rodriguez
db089ac220 Implementing vendor loading and refactoring code in App::import() 2011-03-11 23:21:34 -04:30
Jose Lorenzo Rodriguez
ebd8d1d0c2 Fixing multiple classes loading in App::import() 2011-03-11 18:59:08 -04:30
Jose Lorenzo Rodriguez
5a57f2c3c3 Re-implmenting file loading in App::import(), search it is not longer recursive... if it ever was 2011-03-11 18:57:11 -04:30
Jose Lorenzo Rodriguez
0bf51d92ca Improving App::import() to make importing from plugins work again 2011-03-11 01:31:01 -04:30
Jose Lorenzo Rodriguez
3f7a7cc5d1 Removing more un-used code in App class 2011-03-11 01:07:46 -04:30
Jose Lorenzo Rodriguez
02955fb923 Removing unused code in App class, improving backwards compatibility in App::import() 2011-03-11 01:04:41 -04:30
Jose Lorenzo Rodriguez
e6b253ec0f Starting to write a new App::import() that keeps where possible the backwards compatibility 2011-03-11 00:50:14 -04:30
Jose Lorenzo Rodriguez
472257c347 Removing unused variables and properly testing more methods in App class 2011-03-09 23:33:03 -04:30
Jose Lorenzo Rodriguez
022702506e Properly testing the App::build() method and bugfixing some issues 2011-03-09 22:11:13 -04:30
Jose Lorenzo Rodriguez
65136e8cb1 Re-adding the support for the topmost plugins folder and homogenizing some constants in shell dispatcher 2011-03-08 15:08:28 -04:30
Jose Lorenzo Rodriguez
48b3593a25 Fixing the CommandList shell, renaming the TestSuiteShell to TestsuiteShell for BC 2011-03-08 14:15:44 -04:30
Jose Lorenzo Rodriguez
2ef02ba29b Starting to move all console related classes, ViewTask tests passing 2011-03-07 00:45:00 -04:30
Jose Lorenzo Rodriguez
f1e2f5e949 Starting to migrate AuthComponent to the new class loader 2011-03-05 17:40:42 -04:30
José Lorenzo Rodríguez
deae38546b Fixing App::objects() and App::setObjects() so all dispatcher tests pass 2011-02-22 00:44:33 -04:30
José Lorenzo Rodríguez
6e4f4efb79 Merge remote branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	cake/bootstrap.php
	lib/Cake/Console/Command/TestSuiteShell.php
	lib/Cake/Console/TaskCollection.php
	lib/Cake/Controller/ComponentCollection.php
	lib/Cake/Controller/Controller.php
	lib/Cake/Core/App.php
	lib/Cake/Model/BehaviorCollection.php
	lib/Cake/Network/CakeRequest.php
	lib/Cake/TestSuite/CakeTestSuiteDispatcher.php
	lib/Cake/TestSuite/CakeWebTestCase.php
	lib/Cake/TestSuite/TestManager.php
	lib/Cake/TestSuite/TestRunner.php
	lib/Cake/View/HelperCollection.php
	lib/Cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
	lib/Cake/tests/cases/libs/test_manager.test.php
2011-02-13 23:10:19 -04:30
José Lorenzo Rodríguez
bff6343979 Adding the session datasources apth to App::build(), in the future look into registering only the top level packages
Fixing CakeSession tests
2011-01-31 00:02:17 -04:30
José Lorenzo Rodríguez
4a55ef47cf Fixing SessionComponent tests 2011-01-28 02:00:20 -04:30
José Lorenzo Rodríguez
61e7cafe32 Fixing HelperCollection tests after merging 2.0 branch in 2011-01-28 01:33:08 -04:30
José Lorenzo Rodríguez
ca4ee0c562 Caching plugin objects in App::objects() 2011-01-09 00:01:44 -04:30
José Lorenzo Rodríguez
be83288806 Fixing App::objects() so it will accept again the plugin syntax fro retreiving plugin objects 2011-01-08 23:44:24 -04:30
José Lorenzo Rodríguez
caa29646ce Fixes for making mpass all ConnectionManager Tests 2011-01-06 00:09:11 -04:30
José Lorenzo Rodríguez
e8a93aef93 Merge remote branch 'origin/2.0' into 2.0-class-loading
Temporarly commenting code on App class while the transition is made
Conflicts:
	lib/Cake/Core/App.php
2011-01-05 22:21:27 -04:30
José Lorenzo Rodríguez
4c0e06c451 Merge remote branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	cake/bootstrap.php
	cake/libs/view/helpers/js.php
	lib/Cake/Model/AclNode.php
	lib/Cake/Model/ConnectionManager.php
	lib/Cake/bootstrap.php
	lib/Cake/tests/cases/libs/controller/controller.test.php
2011-01-02 02:00:03 -04:30
José Lorenzo Rodríguez
f3e2c0835f First attempt at trying to fix App::objects() 2010-12-21 23:45:22 -04:30
José Lorenzo Rodríguez
5e1b49918b Fixing App::core('cake') 2010-12-18 22:26:23 -04:30
José Lorenzo Rodríguez
ad78f1dc74 Adding support for plugin classes back,
Allowing the user to override core classes in app/libs
Adding some backward compatibility for App::path() and App::build()
2010-12-18 22:07:30 -04:30
José Lorenzo Rodríguez
07e43bb0f8 Merge remote branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	cake/libs/view/scaffolds/edit.ctp
	cake/libs/view/scaffolds/form.ctp
	cake/tests/test_app/plugins/test_plugin/views/tests/scaffold.edit.ctp
	cake/tests/test_app/plugins/test_plugin/views/tests/scaffold.form.ctp
	cake/tests/test_app/views/posts/scaffold.edit.ctp
	cake/tests/test_app/views/posts/scaffold.form.ctp
	lib/Cake/Error/ErrorHandler.php
	lib/Cake/Model/Behavior/TranslateBehavior.php
	lib/Cake/Model/Datasource/CakeSession.php
	lib/Cake/Routing/Router.php
	lib/Cake/TestSuite/TestManager.php
	lib/Cake/View/scaffolds/edit.ctp
	lib/Cake/tests/cases/console/shells/bake.test.php
	lib/Cake/tests/cases/libs/cake_log.test.php
	lib/Cake/tests/cases/libs/cake_request.test.php
	lib/Cake/tests/cases/libs/view/helpers/number.test.php
	lib/Cake/tests/test_app/plugins/test_plugin/views/tests/scaffold.edit.ctp
	lib/Cake/tests/test_app/views/posts/scaffold.edit.ctp
2010-12-15 01:13:05 -04:30
José Lorenzo Rodríguez
8e5bd76752 Fixing several errors when running the testsuite 2010-12-11 01:17:55 -04:30
José Lorenzo Rodríguez
4389764050 Fixing core path 2010-12-11 01:13:42 -04:30
José Lorenzo Rodríguez
b8344ecd33 Replacing some of the App::import by App::uses 2010-12-08 23:15:18 -04:30
José Lorenzo Rodríguez
1c368abc1a Adding back cache loading for "objects" in App class 2010-12-07 19:51:26 -04:30
José Lorenzo Rodríguez
e3690ebccb Making shells run again 2010-12-07 01:26:10 -04:30
José Lorenzo Rodríguez
322093a022 Separating cache storing in App shutdown 2010-12-07 00:17:50 -04:30
José Lorenzo Rodríguez
9e64754005 Adding check to no overwrite cache if it has not been modified 2010-12-07 00:00:20 -04:30
José Lorenzo Rodríguez
5dddb362ec Merge remote branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	lib/Cake/config/ini_file.php
2010-12-06 09:42:52 -04:30
José Lorenzo Rodríguez
3f64844de9 Merge remote branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	lib/Cake/Model/ConnectionManager.php
	lib/Cake/basics.php
2010-12-05 23:43:58 -04:30
José Lorenzo Rodríguez
5c0c9841e2 Removing dead code 2010-12-05 20:38:17 -04:30
José Lorenzo Rodríguez
c542ac20c9 Moving core view to the new folder and allowing the view class to find those views 2010-12-05 13:07:01 -04:30
José Lorenzo Rodríguez
0596f5a245 Adding cache support for class loader 2010-12-05 12:00:36 -04:30
José Lorenzo Rodríguez
fcd23b0978 Starting to change the class loading for app classes 2010-12-05 10:54:42 -04:30
José Lorenzo Rodríguez
377cbc546b Fixing some errors in loading view classes 2010-12-04 22:06:53 -04:30
José Lorenzo Rodríguez
fa83ecda5b Beginnings of model loading 2010-12-04 02:57:20 -04:30
José Lorenzo Rodríguez
b4387d2f51 More replacements to get class loaded using the new file scheme 2010-12-04 02:34:30 -04:30
José Lorenzo Rodríguez
3c23080dd2 Moving more classes to the new schema, slowly uncommenting code and implementing new class loader 2010-12-03 20:53:47 -04:30
José Lorenzo Rodríguez
ca34b22dbb Renaming more core classes, next step would be to tweek the autoloader to find only on Cake/ "namespace" (for now) 2010-12-03 20:15:54 -04:30