vardef_map['ext4'] = 'link_target';
$this->vardef_map['link_target'] = 'ext4';
}
var $type='url';
function get_html_edit(){
$this->prepare();
return "";
}
function get_html_detail(){
$xtpl_var = strtoupper($this->name);
return "{" . $xtpl_var . "}";
}
function get_xtpl_detail(){
$value = parent::get_xtpl_detail();
if(!empty($value) && substr_count($value, '://') == 0 && substr($value ,0,8) != 'index.php'){
$value = 'http://' . $value;
}
return $value;
}
function get_field_def(){
$def = parent::get_field_def();
//$def['options'] = !empty($this->options) ? $this->options : $this->ext1;
$def['default'] = !empty($this->default) ? $this->default : $this->default_value;
$def['len'] = $this->len;
$def['dbType'] = 'varchar';
$def['gen'] = !empty($this->gen) ? $this->gen : $this->ext3;
$def['link_target'] = !empty($this->link_target) ? $this->link_target : $this->ext4;
return $def;
}
}
?>