AAAAhome/academiac/www/administrator/components/com_unitehcarousel/models/fields/mycheckbox.php000060400000003501151372370230026540 0ustar00value)){ if($this->value == "true") return(true); }else{ if($this->element['value'] == "true") return(true); } return(false); } /** * Method to get the field input markup. * * @return string The field input markup. * @since 1.6 */ protected function getInput(){ // Initialize some field attributes. $class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : ''; $disabled = ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : ''; $checked = $this->isChecked(); $strChecked = ($checked == true) ? ' checked="checked"' : ''; $checkboxID = $this->id; $inputID = $this->id."-input"; $spanID = $this->id."-span"; $value = ($strChecked == true)?"true":"false"; $html = ""; $html .= ''; $html .= ''; $html .= ''; $html .= ''; return $html; } }