[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/symfony/http-foundation/ -> AcceptHeader.php (summary)

(no description)

File Size: 168 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

AcceptHeader:: (10 methods):

Class: AcceptHeader  - X-Ref

Represents an Accept-* header.

An accept header is compound with a list of items,
sorted by descending quality.

__construct(array $items)   X-Ref

param: AcceptHeaderItem[] $items

fromString($headerValue)   X-Ref
Builds an AcceptHeader instance from a string.

param: string $headerValue
return: self

__toString()   X-Ref
Returns header value's string representation.

return: string

has($value)   X-Ref
Tests if header has given value.

param: string $value
return: bool

get($value)   X-Ref
Returns given value's item, if exists.

param: string $value
return: AcceptHeaderItem|null

add(AcceptHeaderItem $item)   X-Ref
Adds an item.

return: $this

all()   X-Ref
Returns all items.

return: AcceptHeaderItem[]

filter($pattern)   X-Ref
Filters items on their value using given regex.

param: string $pattern
return: self

first()   X-Ref
Returns first item.

return: AcceptHeaderItem|null

sort()   X-Ref
Sorts items by descending quality.

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1