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
Exempted 'created', 'updated' and 'modified' fields from whitelist when saving, closes#3720
Updated Model::bind(), closes#2355
Adding Model::saveAll() to save multiple records and associated records, closes#3615
Replacing Model::generateList() with Model::find('list'), deprecates Model::generateList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6295 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2470]
Adding fix for Ticket #653
Revision: [2469]
Adding fix for Ticket #652
Revision: [2468]
Enabling table list caching for DB DataSources
Revision: [2467]
Adding fix for Ticket #623
Revision: [2466]
Adding fix for Ticket #652
Revision: [2465]
More dbo_source::order() fixes, moving query() to dbo_source, and supporting additional find/findAll parameters in magic find methods
Revision: [2464]
Adding fixes for Ticket #610
Revision: [2463]
Adding an alias fix in DBO_Source, and an IIS rewrite patch for setUri()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2477 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2369]
Added missing doc comments to classes
Revision: [2368]
Removing core view paths from Configure class
Revision: [2367]
Updating View class to use new Configure class to search paths for view files
Revision:[ 2366]
Corrected loadControllers() in basics.php
Revision: [2365]
Updating function in basics.php to use new Configure class
Revision: [2364]
removed duplicate loading of app/config/bootstrap.php
Revision: [2363]
Added new Configure class to hold paths to models, views, and controllers related to Ticket #470.
Moved loading of app/config/bootstrap.php to Configure class from app/webroot/index.php.
Added creating instance of Configure instance in cake/bootstrap.php
Added example of setting custom paths in app/config/bootstrap.php
Corrected error in Object::_savePersistent().
Revision: [2362]
Added fix for Ticket #534
Revision: [2361]
Refactoring persistent code a little more.
File now holds a variable with the serialized class and is include vs. reading file contents.
Revision: [2360]
Refactored persistent methods to use cache()
Revision: [2359]
Fixing array_combine() Warning in Model::generateList()
Revision: [2358]
Set var $persistModel to false by default
Revision: [2357]
Moved persistent code to Object class.
Moved $TIME_START variable to top of file.
added __sleep methods for models
Revision: [2356]
Reverting persistent changes to Model class
Revision: [2355]
Adding fix for Ticket #550
Revision: [2354]
Corrected errors in persistent code
Revision: [2353]
Corrected overwrite in the model/model_php4.php file.
Revision: [2352]
Adding persistent methods to Model class.
This will allow caching of classes.
Added app/tmp/persistent directory.
Revision: [2351]
Reverting changes to dbo_source.php in [2350]
Revision: [2350]
Removed name pattern matches related to Ticket #534
Revision: [2349]
Adding fix for Ticket #548
Revision: [2348]
Adding fixes from Ticket #547.
Revision: [2347]
Adding fixes from Ticket #546.
Revision: [2346]
Adding fix for Ticket #527
Revision: [2345]
Refactored Html::url()
Revision: [2344]
Last fix for Ticket #483
Revision: [2343]
Updating last commit
Revision: [2342]
Adding fix for Ticket #483
Revision: [2341]
Adding fix for Ticket #543, DBO will now only cache SELECT queries
Revision: [2340]
Adding session_write_close() to the CakeSession::__regenerateId()
Revision: [2339]
Adding patch from Ticket #544
Revision: [2338]
Adding patch from Ticket #529
Revision: [2337]
Adding patch from Ticket #528
Revision: [2336]
Removing the converting of \n to <br /> in Sanitize::html()
Revision: [2335]
Added bash script from Ticket #533
Revision: [2334]
Added enhancement for Ticket #474
Revision: [2333]
Correcting errors introduced with prior fix
Revision: [2332]
Correcting errors introduced with prior fix
Revision: [2331]
Performance optimization for NeatArray::findIn(): replaced foreach loop with for
Revision: [2330]
Minor performance optimization: Replacing all occurrences of low() with strtolower()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2370 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2328]
Merging changes from model_php5.php
Revision: [2327]
Fixing queries that don't respect model aliases in conditions clauses
Revision: [2326]
Adding in-memory query caching to DBO_Source, and Model->cacheQueries property to control the behavior
Revision: [2325]
A recovering discarded association data for recursive belongsTo joins
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2329 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2323]
Adding SQL error message display.
Fixed Invalid argument supplied for foreach() in dbo_source.php on line 472
Revision: [2322]
Fixed undefined index datasource.php on line 438
Revision: [2321]
Adding error messages for ConnectionManager if no database file is present.
Revision: [2320]
Merging changes from model_php5.php
Revision: [2319]
Removing $this->validationErrors = null; in Model::set();
Revision: [2318]
Refactoring Model::invalidFields()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2324 3807eeeb-6ff5-0310-8944-8be069107fe0
Changing version number to 1.x.x.x, 0.10.x.x code base had been changed to the version number 1.x.x.x, and what was planned for 1.x.x.x code has
now been moved to 2.x.x.x, and 2.x.x.x moved to 3.x.x.x. This will give us easier to track version numbers from now on.
Revision: [2248]
Merging changes from model_php5.php
Revision: [2247]
"Removing test code from view class"
Revision: [2246]
Removed cache time define from core.php.
Modified the __() function in basics.php to echo string like it will in later versions of cake with translations.
Refactored the cache checking in bootstrap.php to read the files embedded time stamp and delete or output the cached version.
Added View::cacheView() for caching pages.
Revision: [2245]
Moving column formatting from DBO to Sanitize
Revision: [2244]
Adding beforeValidate() Model callback, and allowing query data to be modified in beforeFind()
Revision: [2243]
"Adding caching changes to Controller class "
Revision: [2242]
"Added check to delete cached version if it has expired"
Revision: [2241]
Adding app/cache/views directory
Revision: [2240]
"Fixed missing variable"
Revision: [2239]
"Adding full page caching to view class."
Revision: [2238]
"Adding defines for caching"
Revision: [2237]
"Adding caching check too bootstrap.php"
Revision: [2236]
Adding ClassRegistry::removeObject from Ticket #477
Revision: [2235]
"Correcting setting in DATABASE_CONFIG class"
Revision: [2231]
Adding convenience function am(), which allows merging an infinite number of arrays merged into one
Revision: [2207]
Change Model::save() to call beforeSave() before validations
Revision: [2199]
Removing conditions method call in Model::field()
Revision: [2196]
Setting proper mime type again
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2250 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2193]
Adding fix for Ticket #471
Revision: [2192]
Adding fix from Ticket #464.
Revision: [2191]
Adding fix for Ticket #461
Revision: [2190]
Adding fix for array_merge_recursive() error when unbindModelis used
Revision: [2189]
merging changes made in model_php5.php
Revision: [2188]
Fixing controller so $viewPath can be set as a var
Revision: [2186]
Adding Security component
Revision: [2185]
Adding additional RequestHandler detection, form security authentication, and automagic view variable $data
Revision: [2183]
Fixing Ticket #473
Revision: [2182]
Adding fix for Ticket #261
Revision: [2181]
Changing MySQL column defs from 12 hour times to 24 (#465)
Revision: [2180]
Fixing Tickets #463 and #462, and an error in Controller::setAction()
Revision: [2179]
Fixing a bug I found in AjaxHelper::link(), and changing the stopwatch time to 4 decimals
Revision: [2177]
Added patch from Ticket #459
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2195 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2151]
Merging changes made to model_php5.php into model_php4.php.
Revision: [2150]
Cleaning up code, removing in line comments
Revision: [2149]
Fixed wrong params passed to SessionComponent::setFlash() in Scaffold class.
Changed View::_render() to only suppress errors in the view when DEBUG is set to 0.
Revision: [2148]
Adding suggestion from Ticket #446.
Revision: [2147]
Added fix for Ticket #443
Revision: [2146]
Added fix for Ticket #444.
Added table.field in the CakeSession class database methods
Revision: [2145]
Renamed _new to _blank in default.thtml.
Starting to refactor changes that broke self joined associations.
Revision: [2144]
Adding fix for Ticket #202
Revision: [2143]
Adding support for nested array-based conditions
Revision: [2141]
Updating View for Session flash changes
Revision: [2140]
Adding Session flash enhancements for a ticket that I took but can't find because someone else closed it
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2152 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2025]
A little more work on plugin to set some default routing.
Revision: [2024]
Changed DboSource::field() so the name() is not called for some field variables.
Revision: [2023]
Changes made in [2022] should only check if the $conditions is not empty.
Revision: [2022]
Changed DboSource::conditions() so it will add the "ticks" needed around the Model.field names.
The Model.field name conventions must be used for this to work.
Revision: [2021]
Adding fix for Ticket #405
Revision: [2020]
Added fix for Ticket #403
Revision: [2019]
Added patch from Ticket #404.
Fixing formatting of files.
Revision: [2018]
Fixing formatting of files
Revision: [2017]
Fixed bad search and replace
Revision: [2016]
Fixing formatting of files
Revision: [2015]
Replaced all 3 space indents with 4 space indents
Revision: [2014]
Updating variables to use the naming proper conventions
Revision: [2013]
Added patch from Ticket #406
Revision: [2012]
Adding fix for Ticket #407.
Fix variables that where not formatted per the coding conventions
Revision: [2011]
Adding patch from Ticket #401
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2026 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1936]
Adding fix for Ticket #364
Revision: [1935]
Adding script.ac slider control and fixing Ticket #188 for real this time
Revision: [1934] [1933] [1932] [1931] [1930]
Docstrings, and some inconsistency fixed. Wrong parameters in one case. Moved them into the signature. Also some code standards fiddling.
Some outdated parameters. Added a todo in docstrings.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1937 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1901]
More work on deeper associations.
Seems to work now, but going to test more.
Revision: [1900]
Getting closer with deeper joins.
Revision: [1899]
Committing changes made to recursive associations.
Revision: [1898]
Adding fixes for Tickets #188 and #195
Revision: [1896]
Adding controller callbacks
Revision: [1895]
A little more refactoring for Controller::redirect()
Revision: [1894]
Removed :// from Controller::redirect()
Revision: [1893]
Adding fix for Ticket #308.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1902 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1891]
Added patch from Ticket #278
Revision: [1890]
Adding patch from Ticket #227
Revision: [1889]
Adding fix from Changeset [1631].
This fixes Ticket #319
Revision: [1888]
Added fix for Ticket #315
Revision: [1887]
Adding patch from Ticket #312
Revision: [1886]
Adding fix that was committed in [1304] back.
Closing Ticket #77 again
Revision: [1885]
Fix added for Ticket #306
Added patch from Ticket #318
Added patch from Ticket #322
Revision: [1884]
Adding fix to Ticket #332
Revision: [1883]
Adding patch from Ticket #330
Revision: [1882]
Adding fix for Ticket #170 back to HtmlHelper::selectTag().
Was lost in a previous merge
Revision: [1881]
Adding fix for Ticket #336
Revision: [1880]
Adding fix from Ticket #307
Revision: [1879]
Plugins will use their own helpers and components if present
Revision: [1878]
Basic implementation of plugins within app/plugins working.
Revision: [1877]
Starting plugin code for multiple apps within one app.
Revision: [1876]
Added Ticket #345.
Revision: [1875]
Added check to AcoAction class that would not attempt to load AppModel Class if it is already defined in memory
Added fixes for Ticket #317, Ticket #333, Ticket #343, Ticket #337
Revision: [1874]
Adding fix for Ticket #340
Revision: [1873]
Added themeWeb var to helpers that will be used if a theme class overrides the view class
Revision: [1872]
Adding $format to timeAgo and relativeTime, for gwoo
Revision: [1871]
Docstrings changes. One char at a time we map out Cake.
Revision: [1870]
Docstrings for Session, and corrections to tabbing on datasource.
Revision: [1869]
Docstrings for the core database classes.
Revision: [1868]
Adding patch for Ticket #131
Revision: [1867]
Allowing ajax link titles to not be escaped
Revision: [1866]
Changed error class so calls to ErrorHandler::error() in production setting will work.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1892 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1864]
Adding fix to DataSource::__cacheDescription().
The call to cache() was always passing $data as a serialized value,
this would result in a failure in the cache function check $data == null
since $data was not null but had a value of "N;".
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1865 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1855]
Forgot to merge changes between the PHP 5 and PHP 4 model classes
Revision: [1854]
Added fix to Model class so that setting var $useTable = false; will not try to create a datasource connection.
Added fix to basics.php in the file_put_contents function that would give a Warning :failed to open stream: File exists.
This fix allows the file to be wrote to if it already exists.
Added fix for undefined notice in DboSource::generateAssociationQuery();
Added Model::$keyToTable to map foreign keys to thier proper tables so scaffold could work with them properly.
Fixed Controller::__generateAssociation() to use Model::$keyToTable.
Fixed layout issue with show view in scaffold.
Revision: [1853]
Added DataSource::buildSchemaQuery() which must be implemented in the child classes.
This will be used to import a table schema.
Added DboMysql::buildSchemaQuery()
Added fix for Ticket #304 by reverting change made in [1825].
Reopened Ticket #286
Added fix for Ticket #310
Revision: [1852]
Added fix for PHP Fatal error: Call to a member function on a non-object in... Controller::generateFieldNames() in PHP 4
when using a HABTM association.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1856 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1841]
Merging changes made in model_php5.php to model_php4.php
Revision: [1840]
Adding fix for PHP 5 when using mysql_connect setting.
Commented out the call to Dbo*::disconnect(). This was closing connections early.
Adding fixe for Ticket #302.
Adding Enhancement for Ticket #300.
Adding fix for Ticket #299
Adding Enhancement for Ticket #298
Adding fix for Ticket #297
Adding Enhancement/Patch from Ticket #296
Revision: [1838]
working on deeper recursive joins
Revision: [1837]
Updating copyright information in all files
Revision: [1836]
Adding fix when setting a field value to 0.
Before it would set this to NULL, which was not expected result.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1842 3807eeeb-6ff5-0310-8944-8be069107fe0