Lines Matching refs:value

63      * (Css attribute value are then HTML encoded as value of the attribute)
178 foreach ($_REQUEST as $key => $value) {
179 if (is_array($value)) {
180 foreach ($value as $subkey => $subval) {
190 // for whatever reason, dokuwiki puts the value in the key
224 $url->addQueryParameter($key, $value);
251 $value = $this->query[$key];
252 if ($value === null) {
255 return $value;
259 * Extract the value of a property
261 * @return string - the value of the property
330 public function addQueryParameter(string $key, ?string $value = null): Url
339 $this->query[$key] = [$value];
341 $actualValue[] = $value;
349 $this->query[$key][] = $value;
351 $this->query[$key] = [$actualValue, $value];
354 $this->query[$key] = $value;
508 foreach ($actualQuery as $key => $value) {
513 if ($expectedValue !== $value) {
514 throw new ExceptionNotEquals("The $key property does not have the same value ($value vs $expectedValue)");
518 foreach ($expectedQuery as $key => $value) {
519 throw new ExceptionNotEquals("The expected URL has an extra property ($key=$value)");
581 * * it output 'key=' instead of `key` when the value is null
584 foreach ($originalArray as $key => $value) {
595 if ($value === null) {
598 if (is_array($value)) {
599 for ($i = 0; $i < sizeof($value); $i++) {
600 $val = $value[$i];
607 $queryString .= urlencode($key) . "=" . urlencode($value);
621 $value = $this->getQueryPropertyValue($key);
623 return $value;
846 * This function makes sure that there is only one value for one key
847 * if the value are different, the value will be added
849 * @param string $value
852 public function addQueryParameterIfNotActualSameValue(string $key, string $value): Url
856 if ($actualValue !== $value) {
857 $this->addQueryParameter($key, $value);
860 $this->addQueryParameter($key, $value);
888 public function addQueryParameterIfNotPresent(string $key, string $value)
891 $this->addQueryParameterIfNotActualSameValue($key, $value);
896 * Set/replace a query parameter with the new value
898 * @param string $value
901 public function setQueryParameter(string $key, string $value): Url
904 $this->addQueryParameter($key, $value);
915 * If you want to check the value of a DOM attribute, you need to check it with this value