Sean Harvey
8168a7db09
Remove deprecated DBField::create(), use create_field() instead
2012-11-16 14:36:26 +13:00
Sean Harvey
b3d5b68019
Remove deprecated SQLQuery::setWhere() multiple arguments
2012-11-16 14:35:30 +13:00
Sean Harvey
a2bd378d46
Remove deprecated ArrayList::getRange(), use limit() instead
2012-11-16 14:35:05 +13:00
Sean Harvey
e1c5f084ad
Removing deprecated container class argument to DataObject::get()
2012-11-15 14:43:20 +13:00
Sean Harvey
3a198c32d5
Removing deprecated DataObject::databaseFields() and customDatabaseFields()
...
Use database_fields() and custom_database_fields() instead
2012-11-15 14:43:19 +13:00
Sean Harvey
e4088feb46
Removing deprecated instance_get_one() and instance_get()
...
Use DataList API instead
2012-11-15 14:43:19 +13:00
Sean Harvey
a8d779b4de
Removing deprecated DataObject::buildDataObjectSet()
...
Use DataList API instead
2012-11-15 14:43:19 +13:00
Sean Harvey
dde820d87d
Extend deprecation of DataObject::Aggregate() and RelationshipAggregate()
2012-11-15 14:43:19 +13:00
Sean Harvey
0db33f7f04
Removing DataObject::buildSQL() and extendedSQL(), use DataList instead
2012-11-15 14:43:19 +13:00
Sean Harvey
651d4b3d41
Removing DataObject::getAllFields(), use toMap() instead
2012-11-15 14:43:18 +13:00
Sean Harvey
5f852ae7bc
Removing deprecated DataObject::setComponent()
...
This is not used internally any longer
2012-11-15 14:43:18 +13:00
Sean Harvey
3108dea2c2
Removing deprecated DataList::limit() arguments
...
Use 2 arguments, the first being limit and the second offset instead.
2012-11-15 14:43:18 +13:00
Sean Harvey
68bb74820a
Removing join() on DataList/DataQuery
...
Use leftJoin() or innerJoin() instead
2012-11-15 14:43:18 +13:00
Sean Harvey
5c983a25f0
emove deprecated StringField::Lower() and Upper() methods
...
Use LowerCase() and UpperCase() instead
2012-11-15 14:43:16 +13:00
Sean Harvey
9e7bdb3e93
Removing deprecated Text::EscapeXML(), use DBField->XML() instead
2012-11-15 14:43:16 +13:00
Sean Harvey
4c3b804fa5
Remove deprecated ComponentSet, use ManyManyList or HasManyList instead
2012-11-15 14:43:12 +13:00
Sean Harvey
0a046af932
Remove deprecated DataObjectDecorator, use DataExtension instead
2012-11-15 14:43:12 +13:00
Sean Harvey
a371db4300
Remove deprecated DataObjectSet, use DataList or ArrayList instead
2012-11-15 14:43:12 +13:00
Justin Martin
d24b586830
NEW: Enable multiple image manipulation back-ends on the Image class
2012-11-03 19:38:09 -07:00
Simon Welsh
d8c920285c
Merge pull request #917 from TheFrozenFire/feature-DataObjectFromStdClass
...
API: DataObject::__construct() now accepts stdClass for $record
2012-11-03 02:16:07 -07:00
Simon Welsh
123a742872
Merge pull request #920 from TheFrozenFire/feature-SSListEach
...
API: Add new method "each" to SS_List
2012-11-03 02:10:23 -07:00
Simon Welsh
5a793990d8
Merge pull request #921 from TheFrozenFire/bug-DataObjectCreated
...
BUG: DataObject::write overwrites Created on first write
2012-11-03 02:08:35 -07:00
Justin Martin
f2a709d849
BUG: DataObject::write overwrites Created on first write
2012-11-02 20:37:17 -07:00
Justin Martin
26e5afc0c4
NEW: Add new method "each" to SS_List and core implementors thereof
2012-11-02 18:21:02 -07:00
Simon Welsh
8a0f234acf
Merge pull request #870 from chillu/pulls/datalist-filterany
...
NEW DataList->filterAny()
2012-11-02 16:17:48 -07:00
Justin Martin
a651d730f2
BUG: DataObject::__construct() now accepts stdClass for $record
2012-11-01 16:57:07 -07:00
Ingo Schommer
efabde1416
Merge remote-tracking branch 'origin/3.0'
...
Conflicts:
admin/css/screen.css
admin/scss/_style.scss
security/Member.php
2012-10-30 17:52:49 +01:00
Sean Harvey
ac489509be
BUG Fixing "+" characters being replaced with whitespace
...
SS_HTMLValue::getContent() uses urldecode() on the content returned
by saveHTML() -- this was done to fix encoded HTML entities like
square brackets, which are used by shortcodes. Unfortunately, this
also removes valid characters like "+" from the content.
This fixes it so square bracket entities are decoded *only*, and
leaves everything else as-is.
2012-10-24 14:44:14 +13:00
Simon Welsh
bedb579b07
Merge branch '3.0'
2012-10-23 15:21:20 +13:00
icecaster
8a7f9ede97
fixed empty string always on scaffolded enum fields
2012-10-17 12:30:05 +13:00
Mateusz Uzdowski
8eb0fa91bd
API Add the ability to query if the schema update is in progress.
...
The specific situation where this is useful is where populateDefaults on
DataObjects needs to query the database. This will break the dev/build
when it tries to create the object via singleton - the query will not be
able to be executed if the table is not there or its schema has changed.
For an example of such use case see Translatable::populateDefaults.
2012-10-17 11:45:21 +13:00
Ingo Schommer
1181ba089a
Merge remote-tracking branch 'origin/3.0'
...
Conflicts:
.travis.yml
2012-10-16 10:26:04 +02:00
Will Rossiter
9eb4af37bf
Merge pull request #878 from chillu/pulls/alternative-db-session
...
BUG Using Session::set() for DB::set_alternative_database_name()
2012-10-15 22:34:05 -07:00
Sean Harvey
a171c7e4b0
BUG Fixing regression in 26d70d6fca
with formatted output in SS_HTMLValue
...
If formatOutput is set to TRUE, then the regexes in getContent()
will not match the newlines, and the output will include html, body
and meta tags. Introduce a few new tests to ensure the output is
correct, and fix the regex.
2012-10-16 11:59:30 +13:00
Ingo Schommer
35da873ad9
BUG Using Session::set() for DB::set_alternative_database_name()
...
Setting session directly through $_SESSION relies on
session_autostart which might not be set on every environment,
and isn't consistent with other framework use.
2012-10-15 20:40:38 +02:00
Sean Harvey
f6a90467e4
Merge branch '3.0'
2012-10-15 10:10:01 +13:00
Ingo Schommer
5be3a4c35a
NEW DataList->filterAny()
2012-10-12 15:24:25 +02:00
Sean Harvey
bc345803d5
BUG Fixing model not being set before populateDefaults()
...
In cases where a getter on a DataObject calls getComponent() or
other relational getter, $this->model won't have been set at
this point, and a fatal error is triggered.
This fixes it so $this->model is set *before* populateDefaults()
in DataObject::__construct() and the getters can operate normally.
2012-10-12 09:57:11 +13:00
Simon Welsh
c49f7566c3
API Allow use of :not, :nocase and :case modifiers to SearchFilters.
...
More modifiers can be added to each class as desired.
2012-10-10 10:26:47 +13:00
Simon Welsh
2faf7d112d
API Allow using SearchFilters in DataList::exclude()
2012-10-09 14:47:22 +13:00
Ingo Schommer
fb5e488103
Line length fixes
2012-10-03 18:11:31 +02:00
Ingo Schommer
56f7ce1dcf
Merge remote-tracking branch 'origin/3.0'
...
Conflicts:
control/Cookie.php
control/Director.php
control/HTTPResponse.php
model/Database.php
model/MySQLDatabase.php
model/SQLQuery.php
view/Requirements.php
view/SSViewer.php
2012-10-03 16:16:19 +02:00
Sam Minnee
323fd4aa0f
FIX: Fixed ef81318aea
for PostgreSQL by quoting fields.
2012-10-03 15:34:39 +13:00
Sam Minnee
4e1b6af10f
Fixed long line.
2012-10-03 15:15:21 +13:00
Ingo Schommer
ef81318aea
BUG Retaining join extraFields on ManyManyList->add()
2012-10-03 14:58:28 +13:00
Sam Minnee
1f7fc1f76a
FIX Remove instances of lines longer than 120c
...
The entire framework repo (with the exception of system-generated files) has been amended to respect the 120c line-length limit. This is in preparation for the enforcement of this rule with PHP_CodeSniffer.
2012-09-30 17:18:13 +13:00
Sean Harvey
e4ab02e1c3
Merge branch '3.0'
2012-09-27 10:39:31 +12:00
Sean Harvey
92e62ebb91
Merge pull request #812 from chillu/pull/sitetree-meta-removal
...
Removed SiteTree.MetaTitle and MetaKeywords usage
2012-09-24 21:15:20 -07:00
Sean Harvey
0b17e0036a
BUG Fixing percent encoding issues with saveHTML
2012-09-23 22:28:42 +12:00
Ingo Schommer
5df519c6b5
Removed SiteTree.MetaTitle and MetaKeywords usage
2012-09-21 11:31:24 +02:00