";
return $ret;
}
function format($value,&$default = null){
$default = false;
if ($value === null){
$default = true;
$value = $this->_level->getDefault($this->_key);
}
return $this->_level->getHierarchy()->format($this->_key,$value);
}
}
class settingswrapper_export extends settingswrapper{
protected function _showHierarchyButton(){
return "";
}
protected function _showProtectedCell(){
return "";
}
function showHtml(){
$lang = $this->_level->getHierarchy();
list($label,$input) = $this->_setting->html($lang); // html only uses the $plugin as parameter to have a getLang method, we emulate that on hierarchy.
$input = strtr($input,array('id="config_'=>'id="export_')); // we need to replace the id/for for the inputs/labels, as they can be present on pages where config options are available and then they can violate the id-uniqueness constraint of html.
$label = strtr($label,array('for="config_'=>'for="export_'));
$cssclass = $this->_setting->is_default() ? ' class="default"' : ($this->_setting->is_protected() ? ' class="protected"' : '');
$errorclass = ($this->_setting->error() ? ' value error' : ' value'). ($this->_changed ? " changed" : "");
$has_icon = $this->_setting->caution() ? '' : '';
$ret = "