Go to file
Ingo Schommer 5070cb3a8b Merge pull request #308 from mateusz/sapphire
---

Ref: http://open.silverstripe.org/ticket/6175

Can you review this please and let me know if this is helpful?

Ive attempted to clean up the multitude of the caches on the DataObject, and make them at least more consistent and more visible - although I didnt try to merge them or refactor the code to eliminate them.

Have also explicitly deprecated setComponent - it manipulates "componentCache" which to my eye is no longer used anywhere, and can cause some hidden surprises for people out there. Fixed related CsvBulkLoader problem which was still using setComponent.

Removed $cache_buildSQL_query and $_cache_custom_database_fields, which were not used.

Fixed DataObject::reset to clean all global caches, and DataObject::flushCache to flush the component cache. Both now are doing what it says on the box.

The problem reported in ticket 6175 can now be fixed by doing $this->flushCache(); after the setting the has_one and writing.

Comments welcome :)
2012-04-12 11:34:16 +02:00
_config API CHANGE Use Config for registering default password encryptors 2012-04-07 19:14:00 +12:00
admin BUGFIX: remove form auto-detection from the generic JS state handler. 2012-04-12 11:31:28 +12:00
api Clean up trailing ?> per coding standard 2012-02-12 12:40:16 -08:00
cache Merge branch '2.4' 2011-02-14 18:47:53 +13:00
cli MINOR Removing executable flag from all files (thanks miiihi) 2011-09-18 22:04:02 +02:00
conf BUGFIX, API CHANGE: Enable setting the DB timezone from the environment. 2012-03-11 12:53:01 -07:00
control MINOR: Remove default paramenter from handleRequest() so it complies with the interface correctly. Fixes E_STRICT warning. 2012-04-11 17:20:49 +12:00
core BUGFIX Object::get_extensions() is now declared as static, as it was 2012-04-12 12:02:13 +12:00
css API-CHANGE: new GridFieldFooter component 2012-04-12 16:13:47 +12:00
dev BUGFIX: remove unnecessary setComponent call - no longer used (os6175) 2012-04-12 17:04:24 +12:00
docs MINOR: Updated PHP requirement in docs (#7129) 2012-04-12 18:22:44 +12:00
email Replace ereg with preg_* 2012-02-27 22:14:02 +01:00
filesystem Merge pull request #304 from halkyon/e_strict_fixes 2012-04-11 17:54:18 -07:00
forms Merge pull request #306 from silverstripe-big-o/report-fixes 2012-04-11 22:30:10 -07:00
i18n BUGFIX: Don't call strpos() with an empty delimiter, mb_strpos() is more strict about this (#6751) 2012-03-24 11:14:20 +13:00
images ENHANCEMENT: SSF-124 - styled the pages list view. 2012-04-10 12:22:11 +12:00
javascript Merge branch 'integration' 2012-04-11 16:31:12 +02:00
lang BUGFIX:Trac #6854 / #7115 - fixed styling issues with filter panel across CMS - fixed the issue with the width of the date fields - aligned action buttons in filter panel with the designs. 2012-04-11 16:00:56 +12:00
model ENHANCEMENT: refer to cache statics explicitly via DataObject (os6175) 2012-04-12 17:04:24 +12:00
parsers ENHANCEMENT Shortcodes now support commas as delimiter for attributes (thanks aoneil for help with the regex!) (trac #6868) 2012-03-09 14:25:42 +13:00
scss API-CHANGE: new GridFieldFooter component 2012-04-12 16:13:47 +12:00
search BUGFIX Fixing FulltextSearchable and Hierarchy to conform to the parent DataExtension for E_STRICT compliance. 2012-04-12 12:06:02 +12:00
security BUGFIX Use of Link() in security classes now refers to $this->controller 2012-04-12 12:09:39 +12:00
tasks Clean up trailing ?> per coding standard 2012-02-12 12:40:16 -08:00
templates API-CHANGE: new GridFieldFooter component 2012-04-12 16:13:47 +12:00
tests MINOR Testing extended dates (very far in the past and future) in 2012-04-12 16:38:35 +12:00
thirdparty BUGFIX php-peg E_STRICT fixes 2012-04-12 14:58:21 +12:00
view MINOR: Hamish is all class. ;-) 2012-04-12 13:19:48 +12:00
_config.php API CHANGE Use Config for registering default password encryptors 2012-04-07 19:14:00 +12:00
_register_database.php MINOR: repair installer for sqlite (from r109787) 2010-10-19 01:26:27 +00:00
.gitignore ENHANCEMENT:added logo to header on ss3 install page - plus compass regenerated icon sprites. 2012-04-05 11:18:11 +12:00
.htaccess BUGFIX Disallow web access to sapphire/silverstripe_version to avoid information leakage (from r114773) 2011-02-02 14:20:05 +13:00
cli-script.php Clean up trailing ?> per coding standard 2012-02-12 12:40:16 -08:00
config.rb MINOR Using SCSS/Compass for sapphire/css 2012-01-08 19:14:32 +01:00
main.php MINOR Update docs and version checking for PHP 5.3+ 2012-04-03 09:54:55 +12:00
main.php5 MINOR phpdoc documentation 2009-03-22 22:59:14 +00:00
Makefile ENHANCEMENT Allowing JSTestDriver execution in tests/javascript/ by adding bash scripts and new Makefile command ("make jasmine") 2011-03-22 18:05:43 +13:00
README.md ENHANCEMENT New UploadField class to replace FileIframeField, ImageField and SimpleImageField 2012-02-03 01:00:08 +01:00
sake MINOR: Make sake executable 2012-01-10 11:10:38 +13:00
silverstripe_version API CHANGE silverstripe_version file now contains the plain version number, rather than an SVN path 2012-02-01 18:42:21 +01:00
static-main.php MINOR Added note about 'homepagefordomain' module coupling 2012-03-14 22:44:07 +01:00
web.config BUGFIX Disallow web access to sapphire/silverstripe_version to avoid information leakage (from r114773) 2011-02-02 14:20:05 +13:00

Overview

PHP5 framework forming the base for the SilverStripe CMS (http://silverstripe.org). Requires a silverstripe-installer base project. Typically used alongside the cms module.

Installation

See installation on different platforms, and installation from source.

License

Copyright (c) 2007-2011, SilverStripe Limited - www.silverstripe.com
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the 
      documentation and/or other materials provided with the distribution.
    * Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software 
      without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

Attribution