mark_story
7259a1b920
Merge branch '1.2' into 1.2-merger
...
Conflicts:
cake/libs/model/datasources/dbo/dbo_mysql.php
cake/libs/model/datasources/dbo/dbo_mysqli.php
cake/libs/view/helpers/text.php
cake/libs/view/theme.php
2009-12-06 21:43:53 -05:00
mark_story
fccfe14e8d
Expanding doc block for ClassRegistry.
2009-11-30 09:18:24 -05:00
mark_story
0783176238
Replacing duplicated code with pluginSplit().
...
Updating test case.
2009-11-15 19:55:20 -05:00
predominant
1185681549
Removing newline caused by Subversion line removal.
2009-11-06 18:01:22 +11:00
predominant
384bb7a0e0
Update license lines throughout.
2009-11-06 17:51:51 +11:00
predominant
d7b604c8ed
Fixing links throughout
2009-11-06 17:46:59 +11:00
predominant
8ff6505fe8
Removing excess whitespace
2009-11-06 17:08:23 +11:00
predominant
6782cb019c
Update CakePHP Project link.
2009-11-06 17:00:11 +11:00
predominant
5dfe1777af
Removing Subversion file headers.
2009-11-06 16:51:09 +11:00
predominant
ceee56013c
Remove Subversion $Date$ lines.
2009-11-06 16:17:01 +11:00
predominant
04f1b6cdfe
Remove Subversion $LastChangedBy$ lines.
2009-11-06 16:11:16 +11:00
predominant
42f3f16d60
Remove subversion $Revision$ lines.
2009-11-06 16:08:02 +11:00
predominant
1b9b0aae5e
Updating Copyright date to include 2009.
2009-11-06 15:34:28 +11:00
predominant
8f75ff58c7
Removing @filesource
2009-11-06 15:24:02 +11:00
AD7six
b2142df2bc
adding a newline before all comment blocks
2009-07-24 21:18:37 +02:00
mark_story
4b00c29eef
Updating doc blocks to improve readability in API.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8015 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-04 05:00:59 +00:00
AD7six
3f2fa6929b
changing tabs for spaces in comment block indentation
...
Removing address and replacing with cakefoundation url
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
phpnut
a90ade78a9
Removing unused code
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7796 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-29 07:35:48 +00:00
phpnut
aa248a126f
Closes #5560 Class Registry::_duplicate call for getObject returns false it will cause an error
...
Added additional optimizations.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7734 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-12 02:36:39 +00:00
nate
8758f36915
Correcting table index formatting for schema generation in DboPostgres, fixes #5471 , docblock formatting fixes in ClassRegistry.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7682 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-30 18:59:17 +00:00
mark_story
62168bfe0f
Updating doc blocks to include access and return PHPDOC tags.
...
Removing use of e() in Debugger.
Fixing code formatting in CookieComponent
Closes #5477
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7662 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 16:49:56 +00:00
renan.saddam
3f8c959ab3
small refactoring for the ClassRegistry
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7656 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 13:37:06 +00:00
renan.saddam
3459fef98f
Fixing wrong class_exists check. Fixes #5474 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7653 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 02:12:35 +00:00
phpnut
5658e26e07
Changing comparison operators to === (identical) which is faster than == (equal)
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7604 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 17:17:49 +00:00
phpnut
cb487bd6e6
More optimization refactoring.
...
Fix cache but causing object_map to be created and deleted on each request.
Replacing function and method calls with better performing code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7596 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 05:11:34 +00:00
DarkAngelBGE
411671f76f
typo fix in doc block in class_registry.php
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7571 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-08 16:58:39 +00:00
phpnut
6bdc60731f
Adding more changes to improve performance. Fixes loading of Models when instance has already been created in the registry
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7527 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 16:43:15 +00:00
gwoo
65df6ca0d8
closes #5322
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7507 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 14:39:37 +00:00
gwoo
e35a215883
fixes #5307 , model name being overridden by class registry for no reason, thanks to vizjerai for the helpful ticket.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7501 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-25 22:33:36 +00:00
mark_story
d6f5d9782c
Fixing typo in ClassRegistry Doc block. Closes #5274
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7471 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-15 17:11:54 +00:00
gwoo
7d9af97bd0
fixes #5261 , return by reference in class registry
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7465 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-14 06:09:31 +00:00
gwoo
cda0009723
Fixing registry so the model group has
...
8/8 test cases complete: 1509 passes, 0 fails and 0 exceptions.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7442 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-07 18:53:05 +00:00
gwoo
76f7d6dc43
making changes to all the model group to run. Currently I get 8/8 test cases complete: 1486 passes, 22 fails and 3 exceptions.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7439 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-07 15:36:26 +00:00
gwoo
565163303c
changing ClassRegistry::params() to ClassRegistry::config()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7386 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 19:53:12 +00:00
DarkAngelBGE
501437baa0
introducing ClassRegistry::params() to fix testing of models associations; also removes the need for TestModels that extend the model under test to change the useDbConfig, fixes #5158 , #5076 (kudos to nate)
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7383 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 15:37:26 +00:00
nate
df75a06756
Fixing coding standards violations in core, and adding misc tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7222 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-20 20:17:23 +00:00
nate
42da5aba81
Moving Cake folder to correct location
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2
deleting cake folder from svn
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
phpnut
1b4c445cad
"Fixes #4256 , tablePrefix + HABTM with defaults == wrong joinTable"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6585 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-16 07:18:42 +00:00
phpnut
cb53dc61b0
"Closes #2897 , Built-in file validation.
...
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
phpnut
c98d1457ac
"Fixes #3743 , Loading mechanism tries to load files twice from same location.
...
Fixes #3751 , Behavior of Configure::listObjects() changed."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6209 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 04:42:59 +00:00
gwoo
eed0f6c570
refactored class regsitry init
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6199 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 19:25:24 +00:00
phpnut
c000940e36
Closes #2119 Only define clone() in PHP4 when it hasn't been already defined.
...
Closes #2213 , Support multiple plugin paths.
Closes #2234 , filepaths to behavior classes should be cached in class.paths.php also
Closes #2345 , ability to group components into subfolders
Closes #2645 , Improvement to basic.php for class loading.
Fixes #3526 , Cache::write, when using just the config name, it fails.
Fixes #3559 , loading plugin model as assoc don't work.
Closes #3567 Controller Folders (Note this does not need routing to work, but controller names can not conflict with others in the same application so naming must still be unique)
Fixes #3579 , email.php component: Parse error with php 4.
Adding new class and file importer.
Updated most of the core to use the importer.
Added ClassRegsitry::init() that will create and instance of an object and store it in the registry.
Deprecated most of the load functions in basics.php
Plugin model loading now forces using the dot notation, to use models within a plugin, all the model associations must be in the PluginName.Model syntax, if this is not used, the plugin will look for the models in the main app/models directory first, if not found then it will search the plugin directories recursively until it finds a model.
var $belongsTo = array('SomeModel'); will look for some_model.php in the app/models
var $belongsTo = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
var $belongsTo = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
The controllers of the plugin will still look for the default models inside the plugin if var $uses is not set:
var $uses = array('SomeModel'); will look for some_model.php in the app/models
var $uses = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
var $uses = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
All of the above will work between plugins and main app
These changes also allow placing model and controllers is sub directories
Removed old class.paths.php file generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6001 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 09:35:19 +00:00
phpnut
89185ace25
Adding ClassRegistry::flush() to reset the registry
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5868 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 20:58:55 +00:00
phpnut
da97a5c871
Correcting @return bool
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5857 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:09:35 +00:00
mariano.iglesias
897825d596
Adding documentation to classes belonging to Cake console.
...
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
nate
f749683a8c
Adding boolean return value to ClassRegistry::addObject()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5675 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-20 14:50:42 +00:00
phpnut
dac1bd0913
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
mariano.iglesias
3e8d42bb72
Adding documentation and internationalizing some messages
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5132 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-20 06:30:19 +00:00