-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-23860: RecommendationBundle breaks left tree menu
- Loading branch information
Rafał Toborek
committed
Jun 11, 2015
1 parent
566cbc2
commit 93709d6
Showing
3 changed files
with
75 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
/** | ||
* This file is part of the EzSystemsRecommendationBundle package | ||
* | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributd with this source code. | ||
*/ | ||
|
||
namespace EzSystems\RecommendationBundle\eZ\Publish\LegacySearch; | ||
|
||
use ezpSearchEngine; | ||
|
||
/** | ||
* Recommendation legacy search engine mockup. | ||
* | ||
* This class was created to imitate working of `ezpSearchEngine` which is | ||
* responsible for breaking left tree menu in eZ Publish administration panel. | ||
* | ||
* @link https://jira.ez.no/browse/EZP-23860 | ||
*/ | ||
class NullSearchEngine implements ezpSearchEngine | ||
{ | ||
public function needCommit() | ||
{ | ||
return false; | ||
} | ||
|
||
public function needRemoveWithUpdate() | ||
{ | ||
return false; | ||
} | ||
|
||
public function addObject( $contentObject, $commit = true ) | ||
{ | ||
return false; | ||
} | ||
|
||
public function removeObject( $contentObject, $commit = null ) | ||
{ | ||
return false; | ||
} | ||
|
||
public function removeObjectById( $contentObjectId, $commit = null ) | ||
{ | ||
return false; | ||
} | ||
|
||
public function search( $searchText, $params = array(), $searchTypes = array() ) | ||
{ | ||
return array(); | ||
} | ||
|
||
public function supportedSearchTypes() | ||
{ | ||
return array(); | ||
} | ||
|
||
public function commit() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters