-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHasAttribute.php
More file actions
44 lines (30 loc) · 1.01 KB
/
Copy pathHasAttribute.php
File metadata and controls
44 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace Onimla\HTML;
/**
* Attributes for an HTML element.
*
* @author AlminoMelo at gmail.com
*/
interface HasAttribute {
public function attr($name, $value = FALSE, $output = FALSE);
/**
* Store arbitrary data associated with the matched elements or return the
* value at the named data store for the first element in the set of
* matched elements.
* @param string $key
* @param string $value
* @param string $output
* @return Element
*/
public function data($key, $value = FALSE, $output = 'encode');
public function removeAttr($name);
public function matchAttr($attr, $regexOrString, $level = FALSE);
public function matchClass($classes, $level = FALSE);
public function &findByAttr($attr, $value);
public function &findByName($value);
public function &findById($value);
public function getClassAttribute();
public function addClass($class);
public function removeClass($class);
public function id($value = FALSE);
}