public function output_html($data, $query='') {
        global $OUTPUT;

        $default = $this->get_defaultsetting();
        $context = (object) [
            'size' => $this->size,
            'id' => $this->get_id(),
            'name' => $this->get_full_name(),
            'value' => $data,
            'forceltr' => $this->get_force_ltr(),
        ];
        $element = $OUTPUT->render_from_template('core_admin/setting_configtext', $context);

        return format_admin_setting($this, $this->visiblename, $element, $this->description, true, '', $default, $query);
    }
public function output_html($data, $query='') {
        global $OUTPUT;

        $default = $this->get_defaultsetting();
        $context = (object) [
            'size' => $this->size,
            'id' => $this->get_id(),
            'name' => $this->get_full_name(),
            'value' => $data,
            'forceltr' => $this->get_force_ltr(),
        ];
        $element = $OUTPUT->render_from_template('core_admin/setting_configtext', $context);

        return format_admin_setting($this, $this->visiblename, $element, $this->description, true, '', $default, $query);
    }
public function output_html ( $ data , $ query = '' ) { global $ OUTPUT ; $ default = $ this -> get_defaultsetting ( ) ; $ context = ( object ) [ 'size' => $ this -> size , 'id' => $ this -> get_id ( ) , 'name' => $ this -> get_full_name ( ) , 'value' => $ data , 'forceltr' => $ this -> get_force_ltr ( ) , ] ; $ element = $ OUTPUT -> render_from_template ( 'core_admin/setting_configtext' , $ context ) ; return format_admin_setting ( $ this , $ this -> visiblename , $ element , $ this -> description , true , '' , $ default , $ query ) ; }
Return an XHTML string for the setting
@return string Returns an XHTML string
Return an XHTML string for the setting