Lines Matching refs:attributes
7 protected $attributes; variable in ohrmWidgetButton
9 public function __construct($name, $label, $attributes = null) { argument
10 if (empty($attributes)) {
11 $attributes = array();
16 $this->attributes = empty($attributes) ? array() : $attributes;
22 public function render($name, $value = null, $attributes = array(), $errors = array()) { argument
31 if (empty($attributes)) {
32 $attributes = $this->attributes;
35 if (is_array($attributes)) {
36 if (!array_key_exists('id', $attributes)) {
37 $attributes['id'] = $name;
39 if (!array_key_exists('class', $attributes)) {
40 $attributes['class'] = 'plainbtn';
43 $attributes['id'] = $name;
44 $attributes['class'] = 'plainbtn';
47 …put', array_merge(array('type' => 'button', 'name' => $name, 'value' => __($value)), $attributes));
51 if (!array_key_exists('value', $this->attributes)) {
52 $this->attributes['value'] = $this->label;
55 return $this->attributes;