Свойство | Type | Description | |
---|---|---|---|
$defaultMatchAgainst | Array | Default array to match against. | |
$defaultViewModelName | Default ViewModel | ||
$event | |||
$request | Zend\Http\Request |
Méthode | Description | |
---|---|---|
__invoke ( array $matchAgainst = null, boolean $returnDefault = true, Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null &$resultReference = null ) : Zend\View\Model\ModelInterface | null | Detects an appropriate viewmodel for request. | |
getDefaultMatchAgainst ( ) : array | null | Get the default Accept Types and View Model combinations to match against if none are specified. | |
getDefaultViewModelName ( ) : string | Set the default View Model (name) to return if no match could be made | |
getViewModel ( array $matchAgainst = null, boolean $returnDefault = true, Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null &$resultReference = null ) : Zend\View\Model\ModelInterface | null | Detects an appropriate viewmodel for request. | |
getViewModelName ( array $matchAgainst = null, boolean $returnDefault = true, Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null &$resultReference = null ) : Zend\View\Model\ModelInterface | null | Detects an appropriate viewmodel name for request. | |
match ( array $matchAgainst = null ) : Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null | Detects an appropriate viewmodel name for request. | |
setDefaultMatchAgainst ( array $matchAgainst = null ) : |
Set the default Accept Types and View Model combinations to match against if none are specified. | |
setDefaultViewModelName ( string $defaultViewModelName ) : |
Set the default View Model (name) to return if no match could be made |
Méthode | Description | |
---|---|---|
extractViewModelName ( Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart $res ) : string | Extract the viewmodel name from a match | |
getEvent ( ) : |
Get the event | |
getRequest ( ) : Zend\Http\Request | Get the request | |
injectViewModelName ( string $modelAcceptString, string $modelName ) : string | Inject the viewmodel name into the accept header string |
public __invoke ( array $matchAgainst = null, boolean $returnDefault = true, Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null &$resultReference = null ) : Zend\View\Model\ModelInterface | null | ||
$matchAgainst | array | (optional) The Array to match against |
$returnDefault | boolean | (optional) If no match is available. Return default instead |
$resultReference | Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null | (optional) The object that was matched |
Résultat | Zend\View\Model\ModelInterface | null |
protected extractViewModelName ( Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart $res ) : string | ||
$res | Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | |
Résultat | string |
public getDefaultMatchAgainst ( ) : array | null | ||
Résultat | array | null |
public getDefaultViewModelName ( ) : string | ||
Résultat | string |
protected getEvent ( ) : |
||
Résultat |
protected getRequest ( ) : Zend\Http\Request | ||
Résultat | Zend\Http\Request |
public getViewModel ( array $matchAgainst = null, boolean $returnDefault = true, Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null &$resultReference = null ) : Zend\View\Model\ModelInterface | null | ||
$matchAgainst | array | (optional) The Array to match against |
$returnDefault | boolean | (optional) If no match is available. Return default instead |
$resultReference | Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null | (optional) The object that was matched |
Résultat | Zend\View\Model\ModelInterface | null |
public getViewModelName ( array $matchAgainst = null, boolean $returnDefault = true, Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null &$resultReference = null ) : Zend\View\Model\ModelInterface | null | ||
$matchAgainst | array | (optional) The Array to match against |
$returnDefault | boolean | (optional) If no match is available. Return default instead |
$resultReference | Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | null | (optional) The object that was matched. |
Résultat | Zend\View\Model\ModelInterface | null | Returns null if $returnDefault = false and no match could be made |
public setDefaultMatchAgainst ( array $matchAgainst = null ) : |
||
$matchAgainst | array | (optional) The Array to match against |
Résultat | provides fluent interface |
public setDefaultViewModelName ( string $defaultViewModelName ) : |
||
$defaultViewModelName | string | The default View Model name |
Résultat | provides fluent interface |
protected Array $defaultMatchAgainst | ||
Résultat | Array |