Using explicit object references for getSpecialSQLQuery()
authorAlexander Ebert <ebert@woltlab.com>
Fri, 12 Jul 2013 15:34:49 +0000 (17:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 12 Jul 2013 15:34:49 +0000 (17:34 +0200)
Fixes #1399

wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php
wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php

index e5fe9188ff7b32e5a70e595981189e63198476e9..fbc9a5d9c3a146de3153d628f00adbe180de3add 100644 (file)
@@ -86,7 +86,7 @@ abstract class AbstractSearchableObjectType extends AbstractObjectTypeProcessor
        /**
         * @see wcf\system\search\ISearchableObjectType::getSpecialSQLQuery()
         */
-       public function getSpecialSQLQuery(PreparedStatementConditionBuilder $fulltextCondition = null, PreparedStatementConditionBuilder $searchIndexConditions = null, PreparedStatementConditionBuilder $additionalConditions = null, $orderBy = 'time DESC') {
+       public function getSpecialSQLQuery(PreparedStatementConditionBuilder &$fulltextCondition = null, PreparedStatementConditionBuilder &$searchIndexConditions = null, PreparedStatementConditionBuilder &$additionalConditions = null, $orderBy = 'time DESC') {
                return '';
        }
 }
index 5605376d5cb037b607f94d1245798f7977432ba1..e5243db55f1905940547c292e081e419f68579ba 100644 (file)
@@ -124,5 +124,5 @@ interface ISearchableObjectType {
         * @param       string                                                          $orderBy
         * @return      string
         */
-       public function getSpecialSQLQuery(PreparedStatementConditionBuilder $fulltextCondition = null, PreparedStatementConditionBuilder $searchIndexConditions = null, PreparedStatementConditionBuilder $additionalConditions = null, $orderBy = 'time DESC');
+       public function getSpecialSQLQuery(PreparedStatementConditionBuilder &$fulltextCondition = null, PreparedStatementConditionBuilder &$searchIndexConditions = null, PreparedStatementConditionBuilder &$additionalConditions = null, $orderBy = 'time DESC');
 }