Go to file
Ingo Schommer 3862a7a0a7 Moved FormFieldSchemaTrait into FormField
The RFC requires a FormField implementation to override $schemaDataType,
but its defined on the trait - which can't be redefined by a field subclass.

In the end, the trait was never designed to be reuseable on classes other than FormField.
We need to admit that architecturally, we'll have to add all that API weight to the base FormField
class because of the way forms are structured in SilverStripe (mainly due to a missing layer
of indirection in getCMSFields implementations).

Also implemented the $schemaDataType on fields where its known.

See https://github.com/silverstripe/silverstripe-framework/issues/4938
See http://php.net/manual/en/language.oop5.traits.php#language.oop5.traits.properties.example
2016-03-28 21:54:42 +13:00
_config API: Move DBField subclasses into SilverStripe\Model\FieldType namespace 2016-03-22 18:09:30 +13:00
.tx API JS i18n files with short locale names, generated by build task 2013-10-25 12:05:46 +02:00
admin Default to schema response part in LeftAndMain->schema() 2016-03-28 21:54:42 +13:00
api API: Move DBField subclasses into SilverStripe\Model\FieldType namespace 2016-03-22 18:09:30 +13:00
cache Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
cli Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
conf Fix Monolog constant use 2015-10-19 08:58:22 +13:00
control API: Move DBField subclasses into SilverStripe\Model\FieldType namespace 2016-03-22 18:09:30 +13:00
core API Formally support custom ownership relations 2016-03-23 14:49:34 +13:00
css New styles for main nav 2016-03-14 10:18:32 +13:00
dev API: Move DBField subclasses into SilverStripe\Model\FieldType namespace 2016-03-22 18:09:30 +13:00
docs API Formally support custom ownership relations 2016-03-23 14:49:34 +13:00
email Cleanup trailing whitespace 2016-03-09 10:20:31 +13:00
filesystem API: Move DBField subclasses into SilverStripe\Model\FieldType namespace 2016-03-22 18:09:30 +13:00
forms Moved FormFieldSchemaTrait into FormField 2016-03-28 21:54:42 +13:00
i18n Implement RFC-7 JavaScript module loader 2016-01-26 11:39:20 +13:00
images BUG: Display of AssetUpload upload fields 2013-05-25 18:01:07 +12:00
javascript API Move ss buttons plugin out of thirdparty 2016-03-21 13:51:33 +13:00
lang Merge remote-tracking branch 'origin/3' 2016-03-07 09:26:35 +13:00
logging API Generated files API 2015-10-23 10:07:48 +13:00
model API Formally support custom ownership relations 2016-03-23 14:49:34 +13:00
oembed Cleanup trailing whitespace 2016-03-09 10:20:31 +13:00
parsers API TinyMCE Image shortcodes 2016-03-21 09:23:40 +13:00
scss Merge remote-tracking branch 'origin/3' 2016-02-25 14:51:59 +13:00
search Merge remote-tracking branch 'origin/3' 2016-01-20 13:16:27 +13:00
security API: Move DBField subclasses into SilverStripe\Model\FieldType namespace 2016-03-22 18:09:30 +13:00
src/SilverStripe/Framework/Injector Add missing packages 2015-08-24 16:15:38 +12:00
tasks BUG Fix CleanupTestDatabaseTask 2016-03-10 10:17:36 +13:00
templates remove $CleartextPassword and update wording on 2016-03-23 07:50:36 +00:00
tests Fix form schema ID getter 2016-03-28 21:54:24 +13:00
thirdparty MINOR: Whitespace fixes in SimpleTest. 2016-03-22 17:39:08 +13:00
view API: Move DBField subclasses into SilverStripe\Model\FieldType namespace 2016-03-22 18:09:30 +13:00
_config.php API TinyMCE Image shortcodes 2016-03-21 09:23:40 +13:00
_register_database.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
.editorconfig MINOR: Supress whitespace cleanup in thirdparty folders. 2016-01-07 10:09:10 +13:00
.gitattributes Update gitattributes and Rebuild bundles 2016-01-26 13:14:48 +13:00
.gitignore Adds npm for managing client-side dependencies 2016-01-13 09:23:47 +13:00
.htaccess API: Remove static main and dev/buildcache 2012-09-21 19:56:56 +12:00
.scrutinizer.yml Added better Scrutinizer support 2015-05-12 23:27:36 +12:00
.travis.yml NEW: Ensure php7 builds pass. 2016-03-22 17:39:09 +13:00
cli-script.php Fix #5071 - add newline to default no-arg message in cli-script.php 2016-02-22 13:52:12 +13:00
composer.json Update PHPUnit from 3.7 to 4.8 2016-02-24 21:42:20 +13:00
CONTRIBUTING.md Add note about semvar to contributing.md 2014-12-04 12:14:18 +13:00
gulpfile.js API Move ss buttons plugin out of thirdparty 2016-03-21 13:51:33 +13:00
main.php Increase minimum required PHP version to 5.5 2015-10-22 23:11:16 +13:00
main.php5 MINORE: Remove training whitespace. 2016-01-07 10:15:54 +13:00
npm-shrinkwrap.json "npm run lock" command 2016-02-29 20:50:15 +13:00
package.json Updating required node version 2016-03-16 21:54:07 +00:00
README.md Adding dependency badge and reference badge 2015-06-03 08:57:07 +12:00
sake Install sake into /usr/local/bin. /usr is now protected on OSX 2016-01-22 18:48:58 +00: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
web.config Improve IIS security 2015-05-11 12:01:30 +12:00

SilverStripe Framework

Build Status Latest Stable Version Latest Unstable Version Total Downloads License Dependency Status Reference Status

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.

Bugtracker

Bugs are tracked on github.com. Please read our issue reporting guidelines.

Development and Contribution

If you would like to make changes to the SilverStripe core codebase, we have an extensive guide to contributing code.

License

Copyright (c) 2006-2014, 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