/** * Gets the quality factor associated with this media type. * * @return int The value associated with 'q' parameter (0-1000), * if absent return 1000. */ public function getQualityValue() { foreach ($this->_parameters as $parameter) { foreach ($parameter as $key => $value) { if (strcasecmp($key, 'q') === 0) { $textIndex = 0; $result; HttpProcessUtility::readQualityValue($value, $textIndex, $result); return $result; } } } return 1000; }