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
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
Revision: [5420]
* Added doc comment for Set::reverse()
Revision: [5419]
* updating Auth component
Revision: [5418]
* Adding fix for #2881, Sanitize::escape() problem with trim()
Revision: [5417]
* Disabling integer column length for Postgres (Ticket #2814)
Revision: [5416]
* Fixing quoting of boolean values in DboPostgres (Ticket #2594)
Revision: [5415]
* Adding fix for #2880, using the acl cli help command would return list of all commands instead of individual commands
Revision: [5414]
* Adding fix for #2813, dbo_oracle.php's value function adding additional quotes
Revision: [5413]
* fixing acl shell
Revision: [5412]
* Adding fix for #2877, adds quit option in bake.php
Revision: [5411]
* Adding fix for #2876, Missing {} on some string on tree behavior
Revision: [5410]
* updating auth, acl and tests
Revision: [5409]
* closes#2754, fix for project task
Revision: [5408]
* Adding fix for #2836, PaginatorHelper::numbers() outputting extra url params
Revision: [5407]
* Adding fix from #2872, $ajax->afterRender() has no decoding
Revision: [5405]
* Adding fix for #2683, $_SERVER['SCRIPT_FILENAME'] not available in some installations of IIS
Revision: [5404]
* Removing else statement in last commit [5403]
Revision: [5403]
* Adding fix for #2863, When trying to load not existing helper file, loadHelper() returns true
Revision: [5402]
* Adding fix for #2757, acl shell view command broken
Revision: [5401]
* Adding fix for #2752, acl shell creates invalid sql
Revision: [5400]
* Adding fix for #2776, ACL Shell should not accept / as an alias
Revision: [5399]
* Adding fix for #2753, db_acl.php doesn't respect Dbo alias property
Revision: [5398]
* Removing code left from testing
Revision: [5397]
* Adding fix for #2837, dbo_source looping bug on parsing fields, can't use database function
* Added test for #2837
Revision: [5396]
* Skipping EmailTest::testBadSmtpSend() and EmailTest::testSmtpSend() if suite can not connect to smtp
Revision: [5395]
* updating most tests with fixes to coding standards
Revision: [5394]
* updating Auth test
Revision: [5393]
* Adding fix for 2691, Error caching xml files
Revision: [5392]
* updating Auth test with AuthUser and fixture
Revision: [5391]
* updating Auth test
Revision: [5390]
* Adding fix for #2822, FileEngine : Escape special chars before write cache
Revision: [5389]
* Adding fix for #2105, Email Component template should default to null?
* Adding fix for #2196, allow creation of user defined headers in email component.
* Adding fix for #2215, EmailComponent header injection protection and cleaning.
* Adding fix for #2717, EmailComponent should account for SAFE_MODE restriction on php mail function.
* Adding fix for #2855, EmailComponent methods and parameters (to, subject, message, from etc.) should be email injection safe
* Adding fix for #2859, EmailComponent does not send email when adding cc: and bcc:
Revision: [5388]
* Adding fix for 'after' value not being rendered in FormHelper::input() (Ticket #2860)
Revision: [5387]
* Incomplete test for Auth component, committing so gwoo can work on it
Revision: [5386]
* #2871, fixing mode in Folder
Revision: [5385]
* Adding fix for #2862, fixes view::render() affect the layout of the main view
Revision: [5384]
* Adding fix for #2869, fixes count function not escaping "count" properly in pgsql
Revision: [5383]
* Adding fix for #2866, fixes print_r() missing second parameter in object.php
Revision: [5382]
* Fixed Inflector bug #2061
* Added tests to InflectorTest
Revision: [5381]
* Added fix for #2824, fixes Empty elements when DISABLE_CACHE is set to true
Revision: [5380]
* Adding patch from [2843], fixes Logging only writes to error.log
Revision: [5379]
* Adding fix for #2823, fixes Element gets different instances of helper than view in PHP4 and PHP5
* Removed HtmlHelperTest::testRadio(), the HtmlHelper::radio() has been deprecated
Revision: [5378]
* Adding deprecated notice to HtmlHelper::radio() this has been replaced with FormHelper::radio() since [5338]
Revision: [5377]
* adding support for passing model name to model task, updated isMobile check in requestHandler
Revision: [5376]
* fixing scaffold templates altrow css
Revision: [5375]
* Adding iPhone detection to RequestHandlerComponent::isMobile()
Revision: [5374]
* Adding fix for failing tests on php 5
Revision: [5373]
* Refactoring Set::reverse() and Model::set()
* Set::reverse() will now reverse the object to an array that was created in Set::map();
* Added testMapReverse() to Set tests.
* Removed code in Model::set() that was no longer needed
Revision: [5372]
* Updating Set::reverse()
* Corrected undefined variable
Revision: [5370]
* Adding option to group elements in Set::combine and making Model::generateList use Set::combine. Adding tests for Model::generateList and more tests for Set::combine
Revision: [5369]
* Adding Set::combine to allow mapping of keys and values of an array using paths
Revision: [5368]
* Refactoring Model::set()
* Added Set::reverse(0 to convert an object to an array
Revision: [5367]
* Improving HABTM saving by getting rid of unneeded loop and escaping field names
Revision: [5366]
* Refactoring the Model::_ _saveMulti() to use one INSERT statement instead of looping over each value and querying INSERT.
Revision: [5365]
* Adding tests for HABTM saving when parent data comes after HABTM data
Revision: [5364]
* Adding tests for HABTM saving, including saving HABTM data without any parent data
Revision: [5363]
* Adding enhancement to allow saving habtm data without needing to update or save a parent record
Revision: [5362]
* Adding tests for del and deleteAll in Model
Revision: [5361]
* Adding aliasing fix for DboSource::delete() and Model::deleteAll() (Ticket #2735)
Revision: [5360]
* fix Paginator::numbers() seperator: #2685
Revision: [5359]
* fix Paginator::numbers() seperator: #2685
Revision: [5358]
* adding test for form checkbox: #2785
Revision: [5357]
* Added explanation to test
Revision: [5356]
* adding test for paginator numbers to prove fix for #2825
Revision: [5355]
* adding fix for paginator numbers: #2825
Revision: [5354]
* Added in test to make sure that an SMTP server is running on port 25 on localhost
Revision: [5353]
* Refactored SMTP send code, cleaned up tests. Test requires local SMTP server that is working
Revision: [5352]
* adding fix for bake form template: #2834
Revision: [5351]
* Added code to allow Email compoenent to send email via SMTP, along with test for component
Revision: [5350]
* Adding DboSource::value() to findCount() to wrap the count in dbo specific quoting
Revision: [5349]
* Typo (ticket #2829)
Revision: [5348]
* Correcting session errors in EmailTest test case
Revision: [5347]
* Added in test for smtp functionality for email component, test not complete
Revision: [5346]
* Added in support for sending code out via SMTP
Revision: [5345]
* Adding a couple of tests to ensure proper parsing of GROUP BY queries
Revision: [5344]
* Adding Router::reload() to setUp() in tests
Revision: [5343]
* Adding fix for Ticket #2821, fixes Controller::postConditions() overrides $data passed in.
Revision: [5342]
* Adding fix for Ticket #2819, fixes postgrsql schema problems when setting 'schema' => '"some_shcema"'; in database settings
Revision: [5341]
* Correcting duplicate class defines in the test cases that was causing tests to fail.
* Added Router::reload(); to ViewTest::setUp()
Revision: [5340]
* Removed extra slash in test paths.
* Removed extra lines in files.
* Corrected header in file
Revision: [5339]
* Refactoring FileEngine cache class
* Refactoring Folder class
Revision: [5338]
* Adding patch from Ticket #2817, Allow type radio in FormHelper::input()
Revision: [5337]
* Fixing TreeBehavior so tests will work on php 4.
* Removing _ _METHOD_ _ from files since it is not valid on php 4
Revision: [5336]
* adding CakeTestModel::cacheSources = false;
* corrected the class that models defined in tree.test.php extend
Revision: [5335]
* Adding fix for Ticket #2812
Revision: [5334]
* Adding fix for Ticket #2561
Revision: [5333]
* Fixing bug when using Security component and a form has a hidden field, similar to those use by FormHelper::checkbox()
Revision: [5332]
* Adding fix for duplicated hidden tag for fields token
Revision: [5331]
* Adding enhancement and tests from #2159
Revision: [5330]
* Adding patch from #2791
Revision: [5329]
* Adding fix for Router::url() when static call is made outside of an object instance
Revision: [5328]
* Adding fix for Ticket #2719, Paginator::numbers() not accepting $options like the prev() and next()
Revision: [5327]
* Ticket #2805, fixes Blacklisting fields in FormHelper::inputs doesn't work like intended
* Ticket #2806, adds FormHelper::inputs can work recursively on $fields
* Merged changes from [5326]
Revision: [5326]
* Fixing issue with DELETE statement and alias not being properly created
Revision: [5325]
* Fixing issue #2810, AjaxHelper does not render boolean options properly, and adding tests for it
Revision: [5324]
* Fixing issue #2713, NumberHelper does not handle some currency formatting very well
Revision: [5323]
* Fixing issue #2735, deleteAll() does not work correctly with model aliases
Revision: [5322]
* Fixing console scripts.
* Correcting errors when using bake shell to create views.
* Corrected errors when interactively creating controllers and views
* Corrected issue in ProjectTask::cakeAdmin() with admin route not writing the admin define in core.php
* Moved ControllerTask::getAdmin() to Shell::getAdmin()
* Removed define setting CAKE_ADMIN to null which would cause issues with admin methods and views
* Corrected missing ?>
Revision: [5321]
* Adding fix for Ticket #2809, fixes Add / Edit scaffolding : Template is always 'edit' instead of $action
Revision: [5320]
* Ticket #1303, fixes On HABTM save() the associated field 'id' must be first in $this->params
* Ticket #1819, fixes save() for HABTM to allow array keys in any order.
* Ticket #2762, fixes Model::save() for HABTM not saving if no data from the parent Model is present
Revision: [5319]
* Adding fix for Ticket #2750, fixes rendering of links when requestAction() is used.
* Router::url() replaced $_this with $this which is an instance of the class from which the method is called, in the case of this ticket it was an instance of the HtmlHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5422 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [5316]
* Adding correct fix for Ticket #2775
Revision: [5315]
* Correcting code structure to standards
Revision: [5314]
* Correcting class method names
Revision: [5313]
* Correcting code structure to standards
Revision: [5312]
* Adding fix for Ticket #2786, fixes form dateTime helper does not set year to current
Revision: [5311]
* Adding fix for Ticket #2792, fixes AuthComponent: Blank password at user login generates SQL error
Revision: [5310]
* Adding fix for Ticket #2795, fixes hidden field for checkbox.
* Updated FormHelperTest::testCheckboxField() to reflect the correct return value
Revision: [5309]
* Adding fix for Ticket #2799, default error message should be i18n
Revision: [5308]
* Adding fix for Ticket #2737, changed TRUNCATE to TRUNCATE TABLE
Revision: [5307]
* Adding patch from Ticket #2642, fixes TranslateBehavior doesn't work with Model::saveField()
Revision: [5306]
* Adding fix for Ticket #2773, fixes Security Component requireAuth
Revision: [5305]
* Adding fix for Ticket #2798, fixes Hidden field causes undefined Index warning in Security Component
Revision: [5304]
* Adding ability to read cookies in the Controller::beforeFilter()
Revision: [5303]
* Adding fix for Ticket #2635, fixes Association data not correct if data is changed in afterFind()
Revision: [5302]
* Adding fix for Ticket #2736, fixes Core testing broken when libraries are relocated
Revision: [5301]
* Adding basic description to Acl shell class
Revision: [5300]
* Adding documentation for Acl shell and internationalizing messages
Revision: [5299]
* Adding documentation for ErrorHandler in Cake console and internationalizing error messages
Revision: [5298]
* Adding documentation for Cake console dispatcher
Revision: [5297]
* Adding documentation for Dispatcher
Revision: [5296]
* Adding documentation for CakePHP basic functions
Revision: [5295]
* Fixing translations function typo
Revision: [5294]
* Adding loadPluginModels back to dispatcher until I fix issue with loading associated plugin models.
* Corrected form.ctp template parse error
Revision: [5293]
* Replacing "&&" by "AND" (ticket #2784)
Revision: [5292]
* Fixing forced empty element selection in FormHelper::select() (Ticket #2749)
Revision: [5291]
* Fixing double merging of URL parameters in PaginatorHelper::sort() (Ticket #2692)
Revision: [5290]
* Fixing typo (ticket #2779)
Revision: [5289]
* Adding fix for Ticket #2775, fixes $this->here shows incorrect value for admin route
Revision: [5288]
* Adding fix for Ticket #2714, fixes requestAction not working properly
Revision: [5287]
* Rolling back DboSource changes from 1.2 to 1.1
Revision: [5286]
* Adding fix for Ticket #2738, fixes Nesting level too deep error when writing object in CakeSession in php 5.2+
Revision: [5285]
* Refactoring DboSource::__quoteFields() and improving support for mixed string and array conditions
Revision: [5284]
* Adding fix for #2651, fixes query creation problem in DboAdodb
Revision: [5283]
* Adding patch from #2652 fixes SQLite LIMIT statement broken
Revision: [5281]
* fix bake index template
Revision: [5280]
* updating bake templates for i18n, fixes for scaffold templates
Revision: [5279]
* fix for scaffold without CAKE_ADMIN
Revision: [5278]
* Applying patch from ticket #2763, adding test for it
Revision: [5277]
* Refactored Scaffold: deprecated generateFieldNames, aligned scaffold and bake view templates, set var $scaffold = CAKE_ADMIN; will scaffold only the admin actions
Revision: [5276]
* Adding test to disprove ticket #2763
Revision: [5275]
* Removing localization code from core-not-found error
Revision: [5274]
* Fixing substring quoting in DboSource::__quoteFields()
Revision: [5273]
* updating Acl, should fix#2733
Revision: [5272]
* changing Model::create to use Set::filter
Revision: [5271]
* updating acl shell
Revision: [5270]
* updating headers
Revision: [5269]
* Fixing path in help text
Revision: [5268]
* updating bake cake admin define
Revision: [5267]
* Adding query conditions parenthesis fix for Ticket #2663
Revision: [5266]
* updating bake view templates
Revision: [5265]
* update to formhelper habtm fields
Revision: [5264]
* updating help for bake
Revision: [5263]
* refactoring task loading
Revision: [5262]
* Adding fix for #2723, this fixes Saving an array in an encrypted cookie, with the CookieComponent, prevents you from deleting it later.
* Adding fix for #2667 move the CookieComponent::startup() implementation to CookieComponent::initialize().
* Deprecated the use of the Controller properties to set the CookieComponent properties
Revision: [5261]
* Updating doc strings with clarified instructions.
Revision: [5259]
* udpated view to work with form helper
Revision: [5258]
* fixing form helper for tickets #2726 and #2659, updated tests.
Revision: [5257]
* Adding fix for #2640, fixes nested array issues with Router::stripEscape()
Revision: [5256]
* Initializing tasks before execution (ticket #2725)
Revision: [5255]
* Adding documentation for Component
Revision: [5254]
* Adding fix for #2691, fixes error caching xml files
Revision: [5253]
* Adding fix for #2650, fixes alias in DboAdodb::fields()
Revision: [5252]
* Adding fix for #2689, fixes issue when using FormHelper::submitImage with Security Component enabled
Revision: [5251]
* Adding fix for #2648, fixes issue with token not being regenerated
Revision: [5250]
* Adding fix for undefined variable in Controller::cleanUpFields()
Revision: [5249]
* updating view task and view template
Revision: [5248]
* Enabling custom pagination methods in model
Revision: [5247]
* Fixing problem when baking only admin functions
Revision: [5246]
* Fixing typo
Revision: [5245]
* Using $connection param when cleaning arrays (ticket #2712)
Revision: [5244]
* updating view task and view template
Revision: [5243]
* #2672: fixed model task unit test baking
Revision: [5242]
* fixing missing passedArgs member in controller that was not committed in [5228], fixing cleanUpFields to not set a default time or date.
Revision: [5241]
* fixing extra ; in bake form template
Revision: [5240]
* fixing arg shifting in shells for php4
Revision: [5239]
* updating shells with startup callback, so a shell initializes, then loads tasks, then starts up, Tasks are the same. few other minor fixes to bake, api and acl.
Revision: [5238]
* Adding fix for FormHelper::checkbox() not creating the hidden fields.
* Corrected errors when multiple hidden fields used in a form.
* Fixed SecurityComponent::_ _validatePost() that would invalidate a form when checkboxes used.
Revision: [5237]
* updating view task and adding view task templates
Revision: [5236]
* updating dbconfig, project, model, and controller tasks
Revision: [5235]
* updating main shell class and dispatcher
Revision: [5234]
* Adding fixtures for afterFind() test
Revision: [5233]
* Adding test case for Model::findAll() results modified in afterFind (disproves Ticket #2635)
Revision: [5232]
* Fixing bug introduced in [5228].
Revision: [5231]
* Adding changes to Controller::set() to force $camelBacked variables only if second params is null
Revision: [5230]
* Adding change to Controller::set() to force variable to $camelBacked
Revision: [5229]
* Fixing issue with bad key set in Controller::generateFieldNames() causing HABTM not to save
Revision: [5228]
* fixing missing passedArgs member in controller
Revision: [5227]
* adding pass to the default set of router params
Revision: [5226]
* Fixing typo (ticket #2674)
Revision: [5225]
* Added "Model columns" command to get a list of columns and column type for a model
Revision: [5224]
* Correcting date string in tests
Revision: [5223]
* fixing File again adding info property
Revision: [5222]
* Adding fix for #2657, fixes form with Textarea does not save when Security Component is enabled
Revision: [5221]
* fixing File tests and class
Revision: [5220]
* Added in more verbose output of Model->save() functionality
Revision: [5219]
* Added in Model->save() method along with help text explaining how to use it
Revision: [5218]
* Correcting loading of plugin view classes
Revision: [5217]
* updating acl and model cli
Revision: [5216]
* Removed "protected" declaration from a function...PHP 5 only
Revision: [5215]
* Added in dynamic unbinding, verification of existing models, verification of existing associations, added in help text and reorganized code in swich-case block now that I figured out you could put preg_matches in a case statement :)
Revision: [5214]
* fixing typo in cleanUpfields
Revision: [5213]
* Changing Helper::_ _value(); to Helper::value();
* Removed HtmlHelper::value();
* Changed all references to _ _value() to value();
* Started changes needed for loading custom view classes located in a plugin
Revision: [5212]
* updating project task paths
Revision: [5211]
* updating File class and tests
Revision: [5209]
* Finishing vendors function to allow loading of plugin vendors files
Revision: [5208]
* Allowing spaces in session keys (Ticket #2639)
Revision: [5207]
* Implementing lazy loading of plugin models
Revision: [5206]
* fixing typo
Revision: [5205]
* adding check to previous cleanUpFields fix
Revision: [5204]
* updating cleanUpFields in 1.2 and 1.2 for #2632
Revision: [5203]
* updating file class deprecated getters, fixes for tickets #1838 and #2641, adding tests, changing Folder default directory to TMP
Revision: [5202]
* Moving loading of plugins controller to use loadController()
Revision: [5201]
* Adding documentation for Socket, Validation and Xml
Revision: [5200]
* Adding comments to Set
Revision: [5199]
* Fixing docs for Session
Revision: [5198]
* Formatting
Revision: [5197]
* Starting code changes to allow dot notation for loading of all classes
Revision: [5196]
* Refactoring tasks
Revision: [5195]
* Fixing problem with handling "0" in NumberHelper::toReadableSize() (ticket #2654)
Revision: [5194]
* Adding comments for Sanitize and Security
Revision: [5193]
* Adding comments for Router
Revision: [5192]
* Adding missing accessors
Revision: [5191]
* Adding documentation for Overloadable in both PHP versions
Revision: [5190]
* removing whitespace
Revision: [5189]
* fixing bug in paths of shell well accessing php cli through cake.php
Revision: [5188]
* minor enhancements like sorting in api shell
Revision: [5187]
* Added message when no result set is found
Revision: [5186]
* Made changes to properly parse output of find() and findAll()...but I don't like how it's doing it, have to find a more elegant solution later
Revision: [5184]
* moving beforeRender to before loadView
Revision: [5183]
* Added code to handle outputting associations like hasMany properly
Revision: [5182]
* Adding fix for #2637, fixes issue with Router::stripEscape() corrupting boolean values
Revision: [5181]
* updating formHelper for #1035 adding more tests, fixing some tags the would produce spaces
Revision: [5180]
* fixing FormHelper::month to use the comment from ticket #700
Revision: [5179]
* fixing bad tests in socket and some working in error messages
Revision: [5178]
* adding strfrotime to FormHelper::month #700, fix to radios which still need to be moved
Revision: [5177]
* adding and to TextHelper::toList #1934
Revision: [5176]
* updating html helper, deprecated methods moved to bottom
Revision: [5175]
* adding formHelper::checkbox
* adding tests
Revision: [5174]
* typo in number test
Revision: [5173]
* adding number helper format and test for format and currency
Revision: [5172]
* Using $this->hr() instead of $this->out('------------') as per gwoo's request
Revision: [5171]
* updating interactive console for the grumpy guy
Revision: [5170]
* Added missing parameter to dynamic bind call
Revision: [5169]
* updating interactive console for the grumpy guy
Revision: [5168]
* Correcting quoting
Revision: [5167]
* Correcting DboSybase class methods
Revision: [5166]
* Adding enhancement suggestion from #1565 to all Dbo classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5318 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [5163]
* changing param check in Router::stripEscape()
Revision: [5162]
* Added in initial functionality for for returning result sets and providing help information
Revision: [5161]
* Adding API Shell to get method signatures from core CakePHP classes
Revision: [5160]
* Merging changes from [5157] into DboSource.
* Adding better check in Router::stripEscape()
Revision: [5159]
* Adding beforeRender() callback to components
Revision: [5158]
* fixing pre color in css
Revision: [5157]
* cleaning up auth, adding options to sort in paginator, adding preg match for database in dbo source
Revision: [5156]
* Refactoring ACL class locations
Revision: [5155]
* Fixing undefined variable in Shell:error()
Revision: [5154]
* adding Media to inflector tests
Revision: [5153]
* Correcting doc comment
Revision: [5152]
* Adding Firebird support
Revision: [5151]
* Fixing visibility based on attribute name convention
Revision: [5150]
* Adding fix to SecurityComponent::_ _validatePost()
Revision: [5149]
* Adding fix to allow empty multiple select when using the Security component. Prior to this fix a form would be considered invalid if nothing was selected.
Revision: [5148]
* Adding access visibility to comment
Revision: [5147]
* Adding comments to code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5165 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [5145]
* Adding fix for #2614
Revision: [5143]
* Adding fix for #2611, fixes App crashes when using requestAction with Security Component enabled
Revision: [5142]
* Adding patch from #2610, fixes Scaffold plugin produces incorrect form "action"
Revision: [5141]
* Adding fix for #2607
Revision: [5140]
* Adding fix for #2613, fixes afterFind callback not called on models in depth search > 1 (recursive).
* Changed the regex pattern matching in Router::stripEscape()
Revision: [5139]
* Adding fix for #2612, Fixes AuthComponent::identify SQL injection, and also removes ability to pass the -! in the posted data
Revision: [5138]
* Adding comments and internationalizing messages in HttpSocket
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5146 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [5132]
* Adding documentation and internationalizing some messages
Revision: [5131]
* Removing inline comments in test file
Revision: [5130]
* Adding link to Xcache in doc comments
Revision: [5128]
* Adding comments for cache
Revision: [5127]
* small change in folder chmod
Revision: [5126]
* Adding fix for failing DboSource tests
Revision: [5125]
* Adding fix for #2587, _ _backAssociation as real class member
Revision: [5124]
* Adding fix for #2607, fixes Fatal error: Call to a member function on a non-object when using php 4
* Adding fix for #2590, fixes ps_files_cleanup_dir: failed: Permission denied
Revision: [5123]
* Fixing string-based URL generation inside plugins (Ticket #2588)
Revision: [5122]
* Fixing bad merge
Revision: [5121]
* Fixing notice in in the skel home.ctp
Revision: [5120]
* Fixing error notices that are thrown when tmp directory is not writable
Revision: [5119]
* Adding tests to test usage of set() & save() for editing records
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5135 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [5110]
* Adding sequence map to DboPostgres for database tables using non-standard sequences
Revision: [5109]
* Adding tests for 'page' and 'offset' with hasMany bindings
Revision: [5108]
* Adding test that fails when using page + limit and offset + limit on a HABTM binding
Revision: [5107]
* updating scaffold links and views
Revision: [5106]
* updating db config task
Revision: [5105]
* Applying patch from #2575 adds summary attribute to SQL query table in debug mode
Revision: [5104]
* Adding media as an uninflected word
Revision: [5103]
* updating project task
Revision: [5102]
* updating project task
Revision: [5101]
* updating project task
Revision: [5100]
* fix to paths in shell
Revision: [5099]
* updating shell paths and help
Revision: [5098]
* Changing order of XML class defs (Ticket #2572)
Revision: [5097]
* Adding missing returns
Revision: [5096]
* updating acl shell
Revision: [5095]
* adding bake tasks
Revision: [5094]
* updated file class, console classes
Revision: [5093]
* Fixing support for error messages when multiple validation rules are used with numeric indexes
Revision: [5092]
* updated folder class and test
Revision: [5091]
* Adding fix for errors on some linux and windows install when using bash scripts
Revision: [5090]
* Removing unused tasks
Revision: [5089]
* Fixing incorrect index in ACL shell script error message, and clarifying help text
Revision: [5087]
* Adding tests and fixes for #2570, this corrects DboSource::conditions fails to quote mixed array/string conditions
Revision: [5086]
* Correcting doc comments
Revision: [5085]
* Adding schema support to Postgres driver (Ticket #1623)
Revision: [5084]
* refactoring paths
Revision: [5083]
* Fixing output caused when class was loaded in console
Revision: [5082]
* Refactoring translation string extractor class to work with new console
Revision: [5081]
* updating baking of models
Revision: [5080]
* fixing paths in shell
Revision: [5079]
* fixing error in shell taskNames
Revision: [5078]
* Fixing cache setting when installing a fresh version on a Win box
Revision: [5077]
* updating tasks, removing BakeTask base class, Task extends Shell
Revision: [5076]
* updating shell task handling, removing bake2
Revision: [5075]
* updating acl and bake shells
Revision: [5074]
* adding tasks and uses to shells, var $tasks and var $uses. if the task exists in the var it will be executed if the command is the same as the task. uses will load the model.
Revision: [5073]
* removing em from css
Revision: [5072]
* Merging [5070] into DboMysqli and also adding changes to 1.1.x.x versions
Revision: [5071]
* Fixing and adding tests for ticket #2551
Revision: [5070]
* Fixing problem in listSources when using '-' in database name
Revision: [5069]
* Adding admin route matching fix (Ticket #2541)
Revision: [5068]
* updating shell
Revision: [5067]
* updating model constructor in 1.1, 1.2 to use the $table param
Revision: [5065]
* Adding fix for irregular inflections returning word in lowercase
Revision: [5064]
* updating bake setCake
Revision: [5063]
* updating paths for shell, bake
Revision: [5062]
* Fixing ACL script for new model interface (Ticket #2164)
Revision: [5061]
* updating paths for shell
Revision: [5060]
* Adding help() as a default command if main() is not defined in shell script
Revision: [5059]
* updating paths for shell
Revision: [5058]
* updating shells for new conventions, better handling of paths, more help
Revision: [5057]
* Adding directories to skel/vendors
Revision: [5056]
* Renaming file
Revision: [5055]
* Renaming vendors/console to vendors/shells
Revision: [5054]
* not fully complete changes but adding so we can change from Script to Shell
Revision: [5053]
* adding application specific vendors/console/templates
Revision: [5052]
* Adding templates directory to vendors/console to allow overriding templates used by the cli
Revision: [5051]
* Removing unneeded empty files
Revision: [5050]
* Adding application specific directories to vendors
Revision: [5049]
* moving tasks directory
Revision: [5048]
* Adding console directory to vendors.
* Added missing empty files
Revision: [5047]
* Added fix for #2545, fixes VALID_NUMBER does not allow negative values
Revision: [5046]
* Adding fix for #2552, fixes JavascriptHelper::object does not convert boolean values correctly
Revision: [5045]
* Adding fix for #2538, fixes findAll doesn't work with TranslateBehavior when specifying which fields to fetch
Revision: [5044]
* Adding test for #2550.
* Added fix for #2550, fixes incorrect inflection of Alias
Revision: [5043]
* Adding fix for #2534, refactored mysql and mysqli dbo
Revision: [5042]
* Added fox for #1815
Revision: [5041]
* Adding fix for #2547, fixes issue when saving arrays with numeric keys
Revision: [5040]
* Applying patch of ticket #2560
Revision: [5039]
* Removing unused function
Revision: [5038]
* updating scaffolding and css
Revision: [5037]
* Correcting call to __value and using dot notation in button()
Revision: [5036]
* Updating help text on ACL script
Revision: [5035]
* Applying patch from ticket #2540
Revision: [5034]
* Removing bake() function and implementation of help()
Revision: [5033]
* Fixing undefined variable error
Revision: [5032]
* Adding fix for #2530, adds support for Oracle to acl cli
Revision: [5031]
* Fixing paths erros in new bash and CLI scripts.
* Updated missing files and directories in skel.
* Corrected paths for app custom scaffold templates
Revision: [5030]
* Adding empty file to all empty directories
Revision: [5029]
* Copying missing directories to skel/views/layouts
Revision: [5028]
* Copying i18n.sql to skel directory
Revision: [5027]
* Adding sanity checking / warning messages for data returned from Model::loadInfo() (thanks phishy)
Revision: [5026]
* Reverting last commit
Revision: [5025]
* Renaming file to see if executable bit will remain
Revision: [5024]
* Test commit to see if executable bit is removed
Revision: [5022]
* Correcting property settings on file
Revision: [5021]
* Correcting property settings on file
Revision: [5020]
* Correcting line endings on bash script.
* Starting to correct paths to new console directory.
* Replaced SCRIPTS define with CONSOLE_LIBS
Revision: [5019]
* Adding possibility to specify if option values should be escaped, and adding tests for it
Revision: [5018]
* Removing wrong delete call
Revision: [5017]
* Moving dispatch.php to console/cake.php
Revision: [5016]
* updating acl console script
Revision: [5015]
* Restructuring console directory
Revision: [5014]
* Adding new libs directory
Revision: [5013]
* Renaming scripts directory to better explain what it is for
Revision: [5012]
* Removing the _task from file names
Revision: [5011]
* updating scripts and skel homepage
Revision: [5010]
* Adding patch from #2528, fixes validation passing when even when allowEmpty === false
Revision: [5009]
* converted bake script to use console. refactored some other script code
Revision: [5006]
* adding commands to scripts, similar to controller actions, will call main action if it exists, cleaning up some other stuff
Revision: [5005]
* fixing typo in ConsoleScript
Revision: [5004]
* Fixed folder test
Revision: [5003]
* Adding tests for Folder
Revision: [5002]
* fixed missing dispatcher in ErrorHandler, updated AclScript, added initialize method to CakeScript which should be used by subclasses as the constructor.
Revision: [5001]
* Adding empty test cases for File and Folder
Revision: [5000]
* updating createFile in CakeScript, adding mode to Folder construct in File class
Revision: [4999]
* changing reference to createFile in acl.php
Revision: [4998]
* updating console scripts, added script path searching, for /vendors and /app/vendors, class names must be like "AclScript" in /scripts/acl.php, all scripts now extend CakeScript
Revision: [4997]
* Renaming file to cake_script.php
Revision: [4996]
* updating console_script
Revision: [4995]
* Adding fix for #2522, fixes errors when primary key is not auto increment and the primary key is set in the data to be saved.
Revision: [4994]
* Cleaning up line endings
Revision: [4993]
* updating default homepage
Revision: [4992]
* Updating ACL script for new Console classes
Revision: [4991]
* Adding fix for #2512, fixes translation behavior count queries
Revision: [4990]
* Adding newlines to ConsoleScript::hr()
Revision: [4989]
* Adding tests for #2520
Revision: [4988]
* Renaming file extensions of scaffolding templates to ctp
Revision: [4987]
* Fixing problem with submit options in FormHelper::end() (ticket #2516)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5118 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [4985]
* Adding fix to allow multiple forms when using SecurityComponent
Revision: [4984]
* Fixing undefined notice after removing RequestHandler::disableStartup = false; in [4981]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4986 3807eeeb-6ff5-0310-8944-8be069107fe0
NOTICE ALL DEPRECATED METHODS ARE REMOVED FROM THE CORE AS OF THIS REVISION!
Revision: [4981]
* Removing deprecated code and files
/basics.php
* normalizeList() Deprecated: see Set::normalize
* countdim() see Set::countDim
libs/controller/components/request_handler.php
* RequestHandler::disableStartup = false; see RequestHandler::$enabled
* RequestHandlerComponent::setView() see RequestHandlerComponent::renderAs()
* RequestHandlerComponent::setAjax() see RequestHandlerComponent::renderAs()
libs/controller/components/session.php
* SessionComponent::flash() use $session->flash('key'); in your views
libs/controller/controller.php
* Controller::_setTitle() see Controller::set()
libs/model/datasources/dbo_source.php
* DboSource::fetchArray() see DboSource::fetchRow()
* DboSource::one() see DboSource::fetchRow()
libs/model/db_acl.php
* DB_ACL::getAco() see AclComponent::$Aco::node()
* DB_ACL::getAro() see AclComponent::$Aro::node()
libs/neat_array.php
* Class is not longer available use libs/set.php Set class
libs/sanitize.php
* Sanitize::sql() see Sanitize::escape()
* Sanitize::cleanArray() see Sanitize::clean()
* Sanitize::cleanArrayR() see Sanitize::clean()
* Sanitize::cleanValue() see Sanitize::clean()
libs/view/helper.php
* Helper::parseHtmlOptions() see HtmlHelper::_parseAttributes()
libs/view/helpers/form.php
* define('TAG_DIV', '<div class="%s">%s</div>');
* define('TAG_P_CLASS', '<p class="%s">%s</p>');
* define('TAG_LABEL', '<label for="%s">%s</label>');
* define('TAG_FIELDSET', '<fieldset><legend>%s</legend>%s</label>');
* FormHelper::labelTag() see FormHelper::label()
* FormHelper::divTag() see HtmlHelper::div()
* FormHelper::pTag() see HtmlHelper::para
* FormHelper::generateInputDiv() see FormHelper::input()
* FormHelper::generateCheckboxDiv() see FormHelper::input()
* FormHelper::generateDate() see FormHelper::input()
* FormHelper::generateTime() see FormHelper::input()
* FormHelper::generateDateTime() see FormHelper::input()
* FormHelper::generateAreaDiv() see FormHelper::input()
* FormHelper::generateSelectDiv() see FormHelper::input()
* FormHelper::generateSubmitDiv() see FormHelper::input()
* FormHelper::generateFields() see FormHelper::input()
libs/view/helpers/html.php
* HtmlHelper::file() see FormHelper::file()
* HtmlHelper::submit() see FormHelper::submit()
* HtmlHelper::selectTag() see FormHelper::select()
* HtmlHelper::formTag() see FormHelper::create()
* HtmlHelper::linkEmail() see HtmlHelper::link()
* HtmlHelper::dayOptionTag() see FormHelper::day()
* HtmlHelper::yearOptionTag() see FormHelper::year()
* HtmlHelper::monthOptionTag() see FormHelper::month()
* HtmlHelper::hourOptionTag() see FormHelper::hour()
* HtmlHelper::minuteOptionTag() see FormHelper::minute()
* HtmlHelper::meridianOptionTag() see FormHelper::meridian()
* HtmlHelper::dateTimeOptionTag() see FormHelper::dateTime()
libs/view/helpers/javascript.php
* JavascriptHelper::linkOut() see JavascriptHelper::link()
libs/view/view.php
* View::setLayout() use $this->layout in your view
Revision: [4980]
Adding option to send extra parameters to a custom validation and more tests for validation
Revision: [4978]
* Adding ability to disable specific form data fields from being added to the validation key.
* Example of using this would be javascript that changes hidden fields, adding additional fields added using javascript, etc.
* This is set in a Controller::beforeFilter().
Example usage:
{{{
$this->Security->disabledFields = array('fieldname', 'additional fields');
$this->Security->disabledFields = array('Model.fieldname', 'OtherModel.fieldname');
}}}
Revision: [4977]
* Setting replyTo and return headers only when defined
Revision: [4976]
* Adding fix for forms that pass an empty value for a hidden field
Revision: [4973]
* Changing where the from token holding the fields from the form is created
Revision: [4972]
* Refactoring SecurityComponent
Revision: [4971]
* Fixing typo
Revision: [4970]
* Adding additional tests for validation.
* Added fix to model to pass the new tests
Revision: [4969]
* Adding hidden field values to hash. This will prevent altering of hidden fields in a form when using the FormHelper and adding the var $components = array('Security'); to a controller or the AppController to use by all child controllers
Revision: [4968]
* Adding form security enhancements.
* Forcing checking of Session form token if security component is used.
* Enhancement will not allow a form to be submitted if the fields in the form created with the FormHelper do not match the fields in the submitted form.
Revision: [4967]
* Adding fix for failing model validation tests
Revision: [4966]
* Restoring commented tests
Revision: [4965]
* Adding test to evaluate emptiness in validation
Revision: [4964]
* Correcting subpackage tag
Revision: [4963]
* Removing acl related directories from components tests
Revision: [4962]
* moving tests
Revision: [4961]
* Fixing paths to correctly load acl models.
* Updating test for acl
Revision: [4960]
* Moving all acl related models to model/db_acl.php.
* Removing components/models directories
* Changing the ACL_FILENAME setting in core.php
Revision: [4959]
* Moving AclBase class to the acl.php file.
* Removing components/iniacl directory.
* Removing acl_base.php file.
Revision: [4958]
* Restructuring locations of acl related classes
Revision: [4957]
* Adding fix for #2510, Use shorter names for attached files in EmailComponent
Revision: [4956]
* Adding fix for #2505
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4983 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [4952]
Added variation for a field parsing test
Revision: [4951]
Adding test for field parsing
Revision: [4950]
Adding tests for #2506
Revision: [4949]
Fixing overriding of default messages
Revision: [4948]
Adding overriding error messages when multiple rules
Revision: [4947]
Adding Xcache support http://trac.lighttpd.net/xcache/
Revision: [4946]
Adding fix for failing ajax tests
Revision: [4945]
Adding fix when mysql_connect is set as a connection in the database config and persistent key is not set in the config, the default for persistent is true and this would override the settings in the database config
Revision: [4944]
Adding a check to prevent if $test is not defined in DATABASE_CONFIG
Revision: [4943]
Fixed tests for PHP4
Revision: [4942]
Fixing assigned by reference on php 4
Revision: [4941]
Fixing assigned by reference on php 4, removing reference in Cache::engine()
Revision: [4940]
Making changes to cache classes and rearranging code to use new cache
Revision: [4939]
Adding return false when Memcache is set as the cache engine and the memcache extension is not installed.
Revision: [4938]
Changing settings used for new caching in core.php
Revision: [4937]
Renaming files _engine was redundant
Revision: [4936]
Refactoring new cache classes
Revision: [4935]
Fixing Model::invalidFields to account for '0' in empty checks
Revision: [4934]
Changing 'allowEmpty' for model validation, adding 'required' and enabling multiple rules per field
Revision: [4933]
Adding initial implementation of extended caching capabilities
Revision: [4932]
Adding fix for Controller::modelClass; name when var $uses; is not the same as the Controllers singular name.
This is now set to the first value of the key $uses[0] if multiple models are added to var $uses;
Revision: [4931]
Adding fix for #2505, fixes Recursive delete in self joined models
Revision: [4929]
Fixing bug with first level validation not showing
Revision: [4928]
fixing theme view layout and element paths #2388
Revision: [4927]
Adding fix for #2452 (patch from #2476).
Added tests for ticket #2452
Revision: [4926]
Added fix for #2453, fixes HtmlHelper link escape title as string
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4955 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [4923]
Fixing last commit [4922]
Revision: [4922]
Removing fields() method from DboDbo2 (Ticket #2444)
Revision: [4921]
Adding fix for #2478 corrects issue on php 4
Revision: [4919]
Adding fix for #2435. Fixes issues with custom inflection rules not being used before the default rules
Revision: [4916]
Adding fix for #2416 fixes Invalid query when using boolean conditions in PostgreSQL
Revision: [4915]
Added fix for #2450
Revision: [4914]
Adding fix for #2500 fixes adding of table.id when not using associated models and only wanting specific fields returned
Revision: [4913]
Adding fixes for test added in [4911] and [4912]
Fixed#2414 fixes findBy doesn't escape WHERE condition
Revision: [4912]
Adding more tests for #2414
Revision: [4911]
Adding tests for #2414
Revision: [4910]
Adding fix for #2419 fixes issue with long lines in email messages breaking links
Revision: [4909]
Adding fix for #2466 fixes missed Router::__mapped reinit in Router::url()
Revision: [4908]
Adding fix for #2428 fixes View::renderElement() behavior with multiple view paths
Revision: [4907]
Adding empty files to all tmp/* directories
Revision: [4906]
Fixing label tests
Revision: [4905]
Adding additional fix for #2481
Revision: [4904]
Adding fix for #2481 fixes Form::label() $tagName does not run through domId()
Revision: [4903]
Adding enhancement from #2483.adds scaffold index view field's label
Revision: [4902]
Adding tests trying to replicate #2451 and more variations of fake threaded self join
Revision: [4901]
Adding fix for #2491 fixes bad scaffold templates paths
Revision: [4900]
Adding fix for #2488 fixes Set::extract failed on assoc array if key starts with numeric
Revision: [4899]
Adding more tests for Set::extract()
Revision: [4898]
Fixing test for #2488
Revision: [4897]
Adding test for #2488
Revision: [4896]
Adding enhancement from #2502 replacing app with APP_DIR
Revision: [4895]
Adding fix for #2371, fixes HtmlHelper submit() method doesn't allow HTML entities in caption
Revision: [4894]
Applying fix from ticket #2485, adding test for it
Revision: [4893]
Applying patch from ticket #2496, adding test for it
Revision: [4892]
Adding test for #2494
Revision: [4891]
Adding tests for #2371
Revision: [4890]
Removing $fieldset = null; in FormHelper::inputs()
Revision: [4889]
Adding fix for #2473
Fixed undefined variable notice in Form::inputs()
Revision: [4888]
Fixing tests so they expect validation errors of all available models to be defined in Form helper
Revision: [4887]
Adding fixes from phishy.
Added fixed for #2492
Revision: [4885]
Fixing conflict of class names between tests
Revision: [4884]
Removing unneeded lines
Revision: [4883]
Adding test for inner model validation, including a two level test that fails
Revision: [4882]
Updating db_acl.sql in templates folder
Revision: [4881]
Adding patch and test for ticket #2369
Revision: [4880]
Adding initial implementation of I18n database translation support
Revision: [4879]
Fixing error when using AuthComponent and DEBUG < 1
Revision: [4878]
Case-insensitive matching when using array of phrases in TextHelper::highlight
Revision: [4877]
Fixing display of core error messages
Revision: [4876]
Changed name from requestAction() to testAction()
Revision: [4875]
Fixing small issues
Revision: [4874]
Added ability to auto-fixturize models when testing controllers
Revision: [4873]
Using reference to controller
Revision: [4872]
Added option to get the view vars after running action
Revision: [4870]
Fixed issue in CakeTestCase::requestAction() when wanting to get resulting HTML
Revision: [4869]
Adding URL fragment (hash) support in Router::url() (Ticket #2432)
Revision: [4868]
Adding undefined variable fix for PaginatorHelper::sortDir() (Ticket #2440)
Revision: [4867]
Moving Router::__filter() to Set::filter()
Revision: [4866]
Removing invalid character
Revision: [4865]
Adding fix for <> condition in DboSource (Ticket #2101)
Revision: [4864]
Removing indents from comments
Revision: [4863]
Added new callbacks and ability to execute CakePHP URLs from CakeTestCase
Revision: [4862]
working on form helper, added a submit button to form end if you pass true, added fieldset options to inputs
Revision: [4861]
Adding fix for misquoted SQL functions (Ticket #2199)
Revision: [4860]
Correcting svn properties on files
Revision: [4859]
Adding field map to convert aliased column names in MSSQL queries
Revision: [4858]
Adding auto-detection check for IIS (manually defining SERVER_IIS is no longer required), and fixing setUri for rewritten IIS URLs.
Revision: [4857]
Fixing problem with highlighting multiple phrases (ticket #2418)
Revision: [4856]
Applying patch from ticket #2417
Revision: [4855]
Removed unneeded variable
Revision: [4854]
Added ability to import table definition and/or records from either an existing Model, or an existing table
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4925 3807eeeb-6ff5-0310-8944-8be069107fe0