AcceptHeaderItem::setIndex()

AcceptHeaderItem setIndex(int $index) Set the item index. Parameters int $index Return Value AcceptHeaderItem

AcceptHeaderItem::getQuality()

float getQuality() Returns the item quality. Return Value float

AcceptHeaderItem::hasAttribute()

bool hasAttribute(string $name) Tests if an attribute exists. Parameters string $name Return Value bool

AcceptHeaderItem::getIndex()

int getIndex() Returns the item index. Return Value int

AcceptHeaderItem::setAttribute()

AcceptHeaderItem setAttribute(string $name, string $value) Set an attribute. Parameters string $name string $value Return Value AcceptHeaderItem

AcceptHeaderItem::getValue()

string getValue() Returns the item value. Return Value string

AcceptHeaderItem::fromString()

static AcceptHeaderItem fromString(string $itemValue) Builds an AcceptHeaderInstance instance from a string. Parameters string $itemValue Return Value AcceptHeaderItem

AcceptHeaderItem::getAttribute()

mixed getAttribute(string $name, mixed $default = null) Returns an attribute by its name. Parameters string $name mixed $default Return Value mixed

AcceptHeaderItem::getAttributes()

array getAttributes() Returns all attributes. Return Value array

AcceptHeaderItem

class AcceptHeaderItem Represents an Accept-* header item. Methods __construct(string $value, array $attributes = array()) Constructor. static AcceptHeaderItem fromString(string $itemValue) Builds an AcceptHeaderInstance instance from a string. string __toString() Returns header value's string representation. AcceptHeaderItem setValue(string $value) Set the item value. string getValue() Returns the item value. AcceptHeaderItem setQuality(float $quality) Set the i