function _renderReadOnly()
 {
     if ($this->_navConf('/readonlymode') !== 'disable') {
         return parent::_renderReadOnly();
     }
     $iValue = $this->getValue();
     if ($iValue === 1) {
         $sChecked = " checked=\"checked\" ";
     }
     $sInput = "<input type=\"checkbox\" disabled=\"disabled\" name=\"" . $this->_getElementHtmlName() . "\" id=\"" . $this->_getElementHtmlId() . "\" " . $sChecked . $this->_getAddInputParams() . " value=\"1\" />";
     $sLabelFor = $this->_displayLabel($this->getLabel());
     $aHtmlBag = array("__compiled" => $sInput . $sLabelFor, "input" => $sInput, "checked" => $sChecked, "value" => $iValue, "value." => array("humanreadable" => $this->_getHumanReadableValue($iValue)));
     return $aHtmlBag;
 }
Exemplo n.º 2
0
 function _renderReadOnly()
 {
     $aHtmlBag = parent::_renderReadOnly();
     $aHtmlBag["value."]["readable"] = $this->_getHumanReadableValue($aHtmlBag["value"]);
     return $aHtmlBag;
 }