Commit graph

70 commits

Author SHA1 Message Date
renan.saddam
76e0f17dbc Updating documentation to improve code completion
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8114 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-17 21:10:28 +00:00
TommyO
96e84c2e60 Fixes improper return from Xcache::clear();
Adds test
see #6110

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8046 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-18 18:07:06 +00:00
gwoo
93ab1be658 fixes #6110, xcache::clear()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8039 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-17 17:32:07 +00:00
TommyO
5026a6c89f Fixed memcache support for durations greater than 30 days. Fixes #6085
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8022 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-11 23:00:19 +00:00
gwoo
c0f767a3aa fixes #5976, Xcache::clear()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7985 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 19:33:30 +00:00
mariano.iglesias
ffab7024f0 Fixing issue where when multiple Memcache servers were being specified, only first would make it. Adding tests. Fixes #5767
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7879 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-19 21:19:23 +00:00
AD7six
0ed0eea73b modifying cache file engine, to match file class changes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7830 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 19:32:45 +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
mark_story
1b456f2cf1 Applying patch from 'davidpersson' fixing code spacing. Closes #5643
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7772 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 00:10:44 +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
2b95df3abf Additional optimization refactoring
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7597 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-13 18:59:30 +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
gwoo
d76b15ba39 closes #5352, xcache auth credentials
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7535 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 16:51:00 +00:00
gwoo
a17e64d108 fixes #5293, memcache initialization
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7482 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-21 16:57:59 +00:00
gwoo
caa7bb6218 updating cache engines so key will expire when duration is changed, updated datasource and configure to for new settings, closes #5083
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7364 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-26 20:00:20 +00:00
mark_story
b45a369d1d Added string cast to FileEngine::read() closes #5094
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7356 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-24 02:23:46 +00:00
gwoo
013e9889e5 updating file engine and test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7252 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-24 01:09:54 +00:00
gwoo
330992a8a3 fixes #4968, double quoted strings in cache
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7251 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-23 23:13:28 +00:00
gwoo
352b121220 fixes #4916, i18n quoted strings. fixes #4968, quoted strings in cache
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7243 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-23 00:27:33 +00:00
gwoo
1e231e9511 some cleanup, wrapping uses() in class exists
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7172 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 15:46:31 +00:00
phpnut
8a30290862 Fixes #4883 Duplicated component name
Removed bad test since AppController::beforeFilter() is now run when Controller::constructClasses() is called.
Fixed bug with App::import() not caching properly.
More performance changes

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7169 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 08:54:27 +00:00
gwoo
a7289ff89d updating cache engine to better deal with prefixes for multiple apps. Allows fully or partially overriding core settings from core.php. fixes #4810
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7089 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 17:35:56 +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
gwoo
13a717aed6 updating Cache engines, fixes #4759
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7045 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-26 19:24:09 +00:00
the_undefined
5c1878afec Removed the Model cache engine for architectural reasons, closes #4415
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6853 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 21:25:19 +00:00
phpnut
2c5ac9cfb9 "Fixes #4232, Problem with stripslashes in cached files.
Added tmp directory to tests/tests_app
Added file to mimic windows cached file
Added test case"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6607 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 15:34:56 +00:00
nate
bacb74a6ef Adding fix for Set::reverse() XML handling, fixes #4275, plus fixes from previous commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6551 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 06:05:31 +00:00
nate
1ddeb7fbfe Fixing File class loading for FileEngine when called from console
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6550 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 04:22:04 +00:00
nate
35397debc8 Enabling Cache::write() to handle 'empty' values, fixes #4090
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6549 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 04:11:20 +00:00
gwoo
818fba4005 updating memcache to make sure server is active
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6377 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-13 16:06:19 +00:00
gwoo
3b7c80a65d updating Cache to apply prefix for every key, closes #3821
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6323 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-05 03:24:25 +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
473b414131 "Removing duplicated code"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6228 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 16:44:42 +00:00
phpnut
a281b7b6e3 "Adding fix for new line endings on windows"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6227 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 16:40:56 +00:00
phpnut
7e17c42e35 "Fixes #3727, ModelEngine::clear() doesn't work"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6215 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 07:56:36 +00:00
phpnut
df66228142 "Fixes #3682"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6150 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 07:18:59 +00:00
phpnut
21b89622cf "Fixes #3682, Unserializing cached file dies. If this issue still persists attache a zip file of the data dump and minimum amount of code to reproduce"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6147 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-14 00:25:03 +00:00
phpnut
8a2b51c3ec "Removing all shortcut function usage from the core"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6128 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 06:08:03 +00:00
phpnut
0382a9d197 "Fixes #3700, unserialization error"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6121 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-06 15:34:57 +00:00
phpnut
872dfbfcef "Correcting Helper::setEntity() check if $parts[0] matches current model
Added tests for fix.
Adding escaping of \\ in FileEngine::write();"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6119 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-06 07:43:19 +00:00
phpnut
a09167a8a6 "Fixing segmentation fault if the TMP/* directories are not writable.
Corrected CakeLog::write() so it will only attempt to write the log file is LOGS directory is writable "

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6094 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-28 09:20:48 +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
gwoo
3feac9a768 updating model Cache engine.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5975 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-09 08:00:59 +00:00
gwoo
ae9cdb78f4 fixed usage of empty params in ShellDispatcher, fixed missing variable in ProjectTask, updated SchemaShell and generation. Schema can now generate a snapshot, and can be forced to generate before models are created. Added 'run' command to handle create and update of the database. Test runs can be performed using -dry. Be sure to check out cake schema help.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5908 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-27 20:00:29 +00:00
phpnut
f41aa80b78 Removing vars that are no longer used.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5904 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-27 01:32:17 +00:00
phpnut
8d6599c34b Fixing bug for related records not being returned when using $recursive > 1.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5902 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-26 08:40:10 +00:00
mariano.iglesias
896f62544b Changing @return int to @return integer and @param bool to @param boolean
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:54:36 +00:00
phpnut
160cd28440 Correcting @return int
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5858 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:11:12 +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