API CHANGE: Made DBField::$default_search_filter_class public rather than protected, so that it could be access with Object::get_static()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@76123 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-05-06 00:13:22 +00:00
parent 2263aaa573
commit 8b23541512
4 changed files with 9 additions and 3 deletions

View File

@ -160,6 +160,9 @@ abstract class Object {
* If any extra values are discovered, they are then merged with the default PHP static values, or in some cases
* completely replace the default PHP static when you set $replace = true, and do not define extra data on any child
* classes
*
* Note that from SilverStripe 2.3.2, Object::get_static() can only be used to get public
* static variables, not protected ones.
*
* @param string $class
* @param string $name the property name
@ -238,6 +241,9 @@ abstract class Object {
/**
* Get an uninherited static variable - a variable that is explicity set in this class, and not in the parent class.
*
* Note that from SilverStripe 2.3.2, Object::uninherited_static() can only be used to get public
* static variables, not protected ones.
*
* @todo Recursively filter out parent statics, currently only inspects the parent class
*
* @param string $class

View File

@ -26,7 +26,7 @@ abstract class DBField extends ViewableData {
*
* @var string
*/
protected static $default_search_filter_class = 'PartialMatchFilter';
public static $default_search_filter_class = 'PartialMatchFilter';
/**
* @var $default mixed Default-value in the database.

View File

@ -19,7 +19,7 @@ class ForeignKey extends Int {
*/
protected $object;
protected static $default_search_filter_class = 'ExactMatchMultiFilter';
public static $default_search_filter_class = 'ExactMatchMultiFilter';
function __construct($name, $object = null) {
$this->object = $object;

View File

@ -13,7 +13,7 @@ class PrimaryKey extends Int {
*/
protected $object;
protected static $default_search_filter_class = 'ExactMatchMultiFilter';
public static $default_search_filter_class = 'ExactMatchMultiFilter';
/**
* @param string $name