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
<?php | |
/** | |
* @var \eZ\Publish\API\Container $serviceContainer | |
*/ | |
$serviceContainer = require "bootstrap.php"; | |
/** | |
* @var $repository \eZ\Publish\API\Repository\Repository | |
*/ |
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
<?php | |
/** | |
* @var \eZ\Publish\API\Container $serviceContainer | |
*/ | |
$serviceContainer = require "bootstrap.php"; | |
/** | |
* @var $repository \eZ\Publish\API\Repository\Repository | |
*/ |
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
<?php | |
/** | |
* @var \eZ\Publish\API\Container $serviceContainer | |
*/ | |
$serviceContainer = require "bootstrap.php"; | |
$repository = $serviceContainer->getRepository(); | |
$administratorUser = $repository->getUserService()->loadUser( 14 ); | |
$repository->setCurrentUser( $administratorUser ); |
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
<?php | |
/** | |
* File containing the eZ\Publish\API\Repository\Values\Content\URLAlias class. | |
* | |
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | |
* @version //autogentag// | |
*/ | |
namespace eZ\Publish\API\Repository\Values\Content; |
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
PHPUnit 3.6.12 by Sebastian Bergmann. | |
Configuration read from /var/www/ezp-next/eZ/Publish/API/Repository/Tests/phpunit-legacy.xml | |
............................................................. 61 / 1273 ( 4%) | |
............................................................. 122 / 1273 ( 9%) | |
............................................................. 183 / 1273 ( 14%) | |
............................................................. 244 / 1273 ( 19%) | |
............................................................. 305 / 1273 ( 23%) | |
............................................................. 366 / 1273 ( 28%) |
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
<?php | |
/** | |
* File containing the Content FieldHandler class | |
* | |
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | |
* @version //autogentag// | |
*/ | |
namespace eZ\Publish\Core\Persistence\Legacy\Content; |
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
<?php | |
/** | |
* File containing the SiteHelper class. | |
* | |
* @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | |
* @version //autogentag// | |
*/ | |
namespace eZ\Publish\Core\Helper; |
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
Example of Criterions not relating to each other: | |
There is a Content with two Locations: Location A and Location B | |
- Location A is visible | |
- Location B is hidden | |
Searching with LocationId criterion with Location B id and Visibility | |
criterion with Visibility::VISIBLE will return the Content because | |
conditions are satisfied: |
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
diff --git a/eZ/Publish/Core/Repository/URLAliasService.php b/eZ/Publish/Core/Repository/URLAliasService.php | |
index 065956e..348a9a5 100644 | |
--- a/eZ/Publish/Core/Repository/URLAliasService.php | |
+++ b/eZ/Publish/Core/Repository/URLAliasService.php | |
@@ -257,8 +257,23 @@ class URLAliasService implements URLAliasServiceInterface | |
*/ | |
protected function selectAliasLanguageCode( SPIURLAlias $spiUrlAlias, $languageCode ) | |
{ | |
- if ( isset( $languageCode ) && !in_array( $languageCode, $spiUrlAlias->languageCodes ) ) | |
+ if ( isset( $languageCode ) ) |
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
<?php | |
class PageController extends Controller | |
{ | |
... | |
/** | |
* | |
* | |
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
OlderNewer