프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$defaultNamespace | string | ||
$defaultScope | string | ||
$groupsBySiteAccess | Siteaccess groups, indexed by siteaccess name | ||
$siteAccess | |||
$undefinedStrategy | integer |
메소드 | 설명 | |
---|---|---|
__construct ( array $groupsBySiteAccess, string $defaultNamespace, integer $undefinedStrategy = self::UNDEFINED_STRATEGY_EXCEPTION ) | ||
getDefaultNamespace ( ) : string | ||
getDefaultScope ( ) | ||
getParameter ( string $paramName, string $namespace = null, string $scope = null ) : mixed | Returns value for $paramName, in $namespace. | |
getUndefinedStrategy ( ) : integer | ||
hasParameter ( string $paramName, string $namespace = null, string $scope = null ) : boolean | Checks if $paramName exists in $namespace. | |
setDefaultNamespace ( string $defaultNamespace ) | Changes the default namespace to look parameter into. | |
setDefaultScope ( $scope ) | ||
setSiteAccess ( |
||
setUndefinedStrategy ( integer $undefinedStrategy ) | Sets the strategy to use if an undefined parameter is being asked. |
public __construct ( array $groupsBySiteAccess, string $defaultNamespace, integer $undefinedStrategy = self::UNDEFINED_STRATEGY_EXCEPTION ) | ||
$groupsBySiteAccess | array | SiteAccess groups, indexed by siteaccess. |
$defaultNamespace | string | The default namespace |
$undefinedStrategy | integer | Strategy to use when encountering undefined parameters. Must be one of - ConfigResolver::UNDEFINED_STRATEGY_EXCEPTION (throw an exception) - ConfigResolver::UNDEFINED_STRATEGY_NULL (return null) |
public getParameter ( string $paramName, string $namespace = null, string $scope = null ) : mixed | ||
$paramName | string | The parameter name, without $prefix and the current scope (i.e. siteaccess name). |
$namespace | string | Namespace for the parameter name. If null, the default namespace will be used. |
$scope | string | The scope you need $paramName value for. It's typically the siteaccess name. If null, the current siteaccess name will be used. |
리턴 | mixed |
public hasParameter ( string $paramName, string $namespace = null, string $scope = null ) : boolean | ||
$paramName | string | |
$namespace | string | If null, the default namespace should be used. |
$scope | string | The scope you need $paramName value for. It's typically the siteaccess name. If null, the current siteaccess name will be used. |
리턴 | boolean |
public setDefaultNamespace ( string $defaultNamespace ) | ||
$defaultNamespace | string |
public setSiteAccess ( |
||
$siteAccess |
public setUndefinedStrategy ( integer $undefinedStrategy ) | ||
$undefinedStrategy | integer |
protected $groupsBySiteAccess |
protected SiteAccess,eZ\Publish\Core\MVC\Symfony $siteAccess | ||
리턴 |