BUGFIX Fixing FulltextSearchable and Hierarchy to conform to the parent DataExtension for E_STRICT compliance.

This commit is contained in:
Sean Harvey 2012-04-12 12:06:02 +12:00
parent 9bd7068394
commit 41433f1211
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class Hierarchy extends DataExtension {
function augmentWrite(&$manipulation) { function augmentWrite(&$manipulation) {
} }
static function add_to_class($class, $extensionClass, $args) { static function add_to_class($class, $extensionClass, $args = null) {
Config::inst()->update($class, 'has_one', array('Parent' => $class)); Config::inst()->update($class, 'has_one', array('Parent' => $class));
parent::add_to_class($class, $extensionClass, $args); parent::add_to_class($class, $extensionClass, $args);
} }

View File

@ -75,7 +75,7 @@ class FulltextSearchable extends DataExtension {
parent::__construct(); parent::__construct();
} }
static function add_to_class($class, $extensionClass, $args) { static function add_to_class($class, $extensionClass, $args = null) {
Config::inst()->update($class, 'indexes', array('SearchFields' => array( Config::inst()->update($class, 'indexes', array('SearchFields' => array(
'type' => 'fulltext', 'type' => 'fulltext',
'name' => 'SearchFields', 'name' => 'SearchFields',
@ -90,7 +90,7 @@ class FulltextSearchable extends DataExtension {
* *
* @return Array * @return Array
*/ */
function get_searchable_classes() { static function get_searchable_classes() {
return self::$searchable_classes; return self::$searchable_classes;
} }