| 1 | <?php |
||
| 18 | class EE_Template_Part { |
||
| 19 | |||
| 20 | |||
| 21 | /** |
||
| 22 | * @type string $name |
||
| 23 | */ |
||
| 24 | protected $name; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @type string $label |
||
| 28 | */ |
||
| 29 | protected $label; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @type string $template |
||
| 33 | */ |
||
| 34 | protected $template; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @type int $priority |
||
| 38 | */ |
||
| 39 | protected $priority; |
||
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * class constructor |
||
| 45 | * @param string $name |
||
| 46 | * @param string $label |
||
| 47 | * @param string $template |
||
| 48 | * @param int $priority |
||
| 49 | */ |
||
| 50 | public function __construct( $name, $label, $template, $priority = 100 ) { |
||
| 51 | $this->set_name( $name ); |
||
| 52 | $this->set_label( $label ); |
||
| 53 | $this->set_template( $template ); |
||
| 54 | $this->set_priority( $priority ); |
||
| 55 | } |
||
| 56 | |||
| 57 | |||
| 58 | |||
| 59 | /** |
||
| 60 | * @return mixed |
||
| 61 | */ |
||
| 62 | public function name() { |
||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | /** |
||
| 69 | * @param mixed $name |
||
| 70 | */ |
||
| 71 | public function set_name( $name ) { |
||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | /** |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function label() { |
||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | /** |
||
| 87 | * @param string $label |
||
| 88 | */ |
||
| 89 | public function set_label( $label ) { |
||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | /** |
||
| 96 | * @return array |
||
| 97 | */ |
||
| 98 | public function template() { |
||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | /** |
||
| 105 | * @param string $template |
||
| 106 | */ |
||
| 107 | public function set_template( $template ) { |
||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | /** |
||
| 114 | * @return int |
||
| 115 | */ |
||
| 116 | public function priority() { |
||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | /** |
||
| 123 | * @param int $priority |
||
| 124 | */ |
||
| 125 | public function set_priority( $priority ) { |
||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | } |
||
| 132 | // End of file EE_Template_Part |
||
| 133 | // Location: core/libraries/templates/EE_Template_Part.class.php |