Open Journal Systems  3.3.0
Symfony\Component\HttpFoundation\AcceptHeaderItem Class Reference

Public Member Functions

 __construct ($value, array $attributes=array())
 
 __construct (string $value, array $attributes=[])
 
 __toString ()
 
 __toString ()
 
 getAttribute ($name, $default=null)
 
 getAttribute ($name, $default=null)
 
 getAttributes ()
 
 getAttributes ()
 
 getIndex ()
 
 getIndex ()
 
 getQuality ()
 
 getQuality ()
 
 getValue ()
 
 getValue ()
 
 hasAttribute ($name)
 
 hasAttribute ($name)
 
 setAttribute ($name, $value)
 
 setAttribute ($name, $value)
 
 setIndex ($index)
 
 setIndex ($index)
 
 setQuality ($quality)
 
 setQuality ($quality)
 
 setValue ($value)
 
 setValue ($value)
 

Static Public Member Functions

static fromString ($itemValue)
 
static fromString ($itemValue)
 

Detailed Description

Represents an Accept-* header item.

Author
Jean-François Simon conta.nosp@m.ct@j.nosp@m.fsimo.nosp@m.n.fr

Definition at line 19 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

Constructor & Destructor Documentation

◆ __construct() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::__construct (   $value,
array  $attributes = array() 
)

Constructor.

Parameters
string$value
array$attributes

Definition at line 59 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

References Symfony\Component\HttpFoundation\AcceptHeaderItem\setAttribute().

◆ __construct() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::__construct ( string  $value,
array  $attributes = [] 
)

Member Function Documentation

◆ __toString() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::__toString ( )

Returns header value's string representation.

Returns
string

Definition at line 56 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ __toString() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::__toString ( )

Returns header value's string representation.

Returns
string

Definition at line 101 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ fromString() [1/2]

static Symfony\Component\HttpFoundation\AcceptHeaderItem::fromString (   $itemValue)
static

Builds an AcceptHeaderInstance instance from a string.

Parameters
string$itemValue
Returns
self

Definition at line 41 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

References Symfony\Component\HttpFoundation\HeaderUtils\combine(), and Symfony\Component\HttpFoundation\HeaderUtils\split().

◆ fromString() [2/2]

static Symfony\Component\HttpFoundation\AcceptHeaderItem::fromString (   $itemValue)
static

Builds an AcceptHeaderInstance instance from a string.

Parameters
string$itemValue
Returns
self

Definition at line 74 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

Referenced by Symfony\Component\HttpFoundation\AcceptHeader\fromString(), and Symfony\Component\HttpFoundation\Tests\AcceptHeaderItemTest\testFromString().

◆ getAttribute() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getAttribute (   $name,
  $default = null 
)

Returns an attribute by its name.

Parameters
string$name
mixed$default
Returns
mixed

Definition at line 158 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getAttribute() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getAttribute (   $name,
  $default = null 
)

Returns an attribute by its name.

Parameters
string$name
mixed$default
Returns
mixed

Definition at line 205 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getAttributes() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getAttributes ( )

Returns all attributes.

Returns
array

Definition at line 168 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getAttributes() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getAttributes ( )

Returns all attributes.

Returns
array

Definition at line 215 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getIndex() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getIndex ( )

Returns the item index.

Returns
int

Definition at line 133 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getIndex() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getIndex ( )

Returns the item index.

Returns
int

Definition at line 180 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getQuality() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getQuality ( )

Returns the item quality.

Returns
float

Definition at line 109 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getQuality() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getQuality ( )

Returns the item quality.

Returns
float

Definition at line 156 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getValue() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getValue ( )

Returns the item value.

Returns
string

Definition at line 85 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ getValue() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::getValue ( )

◆ hasAttribute() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::hasAttribute (   $name)

Tests if an attribute exists.

Parameters
string$name
Returns
bool

Definition at line 145 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ hasAttribute() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::hasAttribute (   $name)

Tests if an attribute exists.

Parameters
string$name
Returns
bool

Definition at line 192 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ setAttribute() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setAttribute (   $name,
  $value 
)

Set an attribute.

Parameters
string$name
string$value
Returns
$this

Definition at line 181 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ setAttribute() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setAttribute (   $name,
  $value 
)

Set an attribute.

Parameters
string$name
string$value
Returns
$this

Definition at line 228 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

Referenced by Symfony\Component\HttpFoundation\AcceptHeaderItem\__construct().

◆ setIndex() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setIndex (   $index)

Set the item index.

Parameters
int$index
Returns
$this

Definition at line 121 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ setIndex() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setIndex (   $index)

Set the item index.

Parameters
int$index
Returns
$this

Definition at line 168 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ setQuality() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setQuality (   $quality)

Set the item quality.

Parameters
float$quality
Returns
$this

Definition at line 97 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ setQuality() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setQuality (   $quality)

Set the item quality.

Parameters
float$quality
Returns
$this

Definition at line 144 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ setValue() [1/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setValue (   $value)

Set the item value.

Parameters
string$value
Returns
$this

Definition at line 73 of file vendor/symfony/http-foundation/AcceptHeaderItem.php.

◆ setValue() [2/2]

Symfony\Component\HttpFoundation\AcceptHeaderItem::setValue (   $value)

Set the item value.

Parameters
string$value
Returns
$this

Definition at line 120 of file lib/vendor/symfony/http-foundation/AcceptHeaderItem.php.


The documentation for this class was generated from the following file: