Lines Matching refs:attribute_string
29 * @param string $attribute_string String containing the selector
31 public function __construct($attribute_string) { argument
32 $attribute_string = trim ($attribute_string, '[] ');
33 $found = strpos ($attribute_string, '|');
35 $attribute_string [$found+1] == '=') {
36 $found = strpos ($attribute_string, '|', $found+1);
40 $this->namespaze = substr ($attribute_string, 0, $found);
42 $attribute_string = substr ($attribute_string, $found + 1);
44 $found = strpos ($attribute_string, '=');
46 $this->attribute = $attribute_string;
48 if (ctype_alpha($attribute_string [$found-1])) {
49 $this->attribute = substr($attribute_string, 0, $found);
51 $this->value = substr($attribute_string, $found + 1);
53 $this->attribute = substr($attribute_string, 0, $found - 1);
54 $this->operator = $attribute_string [$found-1].$attribute_string [$found];
55 $this->value = substr($attribute_string, $found + 1);