-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathWP_Form_Attributes_Interface.php
More file actions
65 lines (56 loc) · 973 Bytes
/
Copy pathWP_Form_Attributes_Interface.php
File metadata and controls
65 lines (56 loc) · 973 Bytes
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
interface WP_Form_Attributes_Interface {
/**
* Set an attribute
*
* @param string $key
* @param string $value
*
* @return void
*/
public function set_attribute( $key, $value );
/**
* Get the value of an attribute
*
* @param string $key
*
* @return string
*/
public function get_attribute( $key );
/**
* Get all attributes that have been set
*
* @return array
*/
public function get_all_attributes();
/**
* Add a class
*
* @param string $class
*
* @return void
*/
public function add_class( $class );
/**
* Remove a class
*
* @param string $class
*
* @return void
*/
public function remove_class( $class );
/**
* Overwrite all currently set classes with a new array of classes
*
* @param array $classes
*
* @return void
*/
public function set_classes( array $classes );
/**
* Get an array of all assigned classes
*
* @return array
*/
public function get_classes();
}