Ajax/semantic/html/modules/checkbox/AbstractCheckbox.php 1 location
|
@@ 22-29 (lines=8) @@
|
19 |
|
$this->setLabel($label); |
20 |
|
} |
21 |
|
|
22 |
|
public function setChecked($value=true){ |
23 |
|
if($value===true){ |
24 |
|
$this->getField()->setProperty("checked", "checked"); |
25 |
|
}else{ |
26 |
|
$this->getField()->removeProperty("checked"); |
27 |
|
} |
28 |
|
return $this; |
29 |
|
} |
30 |
|
|
31 |
|
public function setType($checkboxType) { |
32 |
|
return $this->addToPropertyCtrl("class", $checkboxType, CheckboxType::getConstants()); |
Ajax/semantic/html/collections/form/traits/CheckboxTrait.php 1 location
|
@@ 66-73 (lines=8) @@
|
63 |
|
* @param boolean $value |
64 |
|
* @return HtmlFormField |
65 |
|
*/ |
66 |
|
public function setChecked($value=true){ |
67 |
|
if($value===true){ |
68 |
|
$this->getDataField()->setProperty("checked", "checked"); |
69 |
|
}else{ |
70 |
|
$this->getDataField()->removeProperty("checked"); |
71 |
|
} |
72 |
|
return $this; |
73 |
|
} |
74 |
|
|
75 |
|
} |
76 |
|
|