Lines Matching refs:value
77 * Add a value, or values, to the attribute.
84 foreach ($values as $value) {
85 $this->values[] = $value;
92 * Check if the attribute has a specific value.
94 * @param mixed|string $value
97 public function has($value): bool
99 return array_search($value, $this->values, true) !== false;
103 * Remove a specific value, or values, from an attribute.
110 foreach ($values as $value) {
111 if (($i = array_search($value, $this->values, true)) !== false) {
177 * Retrieve the first value of the attribute.
187 * Retrieve the last value of the attribute.
268 * Escape an attribute value for a filter.
270 * @param string $value
273 public static function escape(string $value): string
275 if (self::shouldNotEscape($value)) {
276 return $value;
278 $value = str_replace(array_keys(self::ESCAPE_MAP), array_values(self::ESCAPE_MAP), $value);
280 return self::escapeNonPrintable($value);