프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$defaultMatchAgainst | Array | Default array to match against. | |
$defaultViewModelName | Default ViewModel | ||
$event | |||
$request | Zend\Http\Request |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | Zend\View\Model\ModelInterface | null |
protected extractViewModelName ( Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart $res ) : string | ||
$res | Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart | |
리턴 | string |
public getDefaultMatchAgainst ( ) : array | null | ||
리턴 | array | null |
public getDefaultViewModelName ( ) : string | ||
리턴 | string |
protected getRequest ( ) : Zend\Http\Request | ||
리턴 | 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 |
리턴 | 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. |
리턴 | 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 |
리턴 | provides fluent interface |
public setDefaultViewModelName ( string $defaultViewModelName ) : |
||
$defaultViewModelName | string | The default View Model name |
리턴 | provides fluent interface |
protected Array $defaultMatchAgainst | ||
리턴 | Array |