Show the data in print_r form, html.
@param $data
@return Response
510265
public static function print_r ($data)
	{
		$in = new self ();
		$in->setData ($data);
		$in->setOutput (new PrintR());
		return $in;
	}
1129533
final public function render($data = array())
    {
        $context = $this->getContext();
        $context->data = array_merge($this->getData(), $data);

        if ($this->invokeCommand('before.render', $context) !== false)
        {
            //Render the view
            $context->result = $this->_actionRender($context);
            $this->invokeCommand('after.render', $context);
        }

        //Set the content
        $this->setContent($context->result);

        return $context->result;
    }
1055279
public function process_response($data)
    {
        $format = '[:uri][:elapsed][:code][:content-type] :body';

        $replaced = [];
        $replaced[':uri'] = $data['uri'];
        $replaced[':elapsed'] = $data['elapsed'];
        $replaced[':code'] = $data['code'];
        $replaced[':content-type'] = $data['content-type'];
        $replaced[':body'] = $data['body'];

        return strtr($format, $replaced);
    }
1032579
public function sendData($data)
    {
        $data = $this->httpRequest('back', $data);

        return $this->response = new ExpressResponse($this, $data);
    }
1117827
public function renderRawData($data = '')
    {
        $layoutPath = null;
        if ($this->layout && (!$layoutPath = $this->getLayoutFile((new KernelInjector)->build()->getAppDir(),
                $this->module))
        ) {
            (new LoggerInjector)->build()->send('error', 'Layout `'.$this->layout.'` not found');
        }

        if ($layoutPath) {
            $data = $this->insertStyleScripts($this->renderFile($layoutPath, ['content' => $data]));
        }

        return $data;
    }
202445
public function render( $print = true )
	{
		$rendered = sprintf( '<form %s>%s%s</form>',
			$this->args['attributes'],
			$this->generateFields(),
			$this->generateSubmitButton()
		);

		if( !!$print && $print !== 'return' ) {
			echo $rendered;
		}

		return $rendered;
	}
553740
public function serialize($data)
    {
        if (is_string($data) === true) {
            return $data;
        } else {
            $data = json_encode($data);
            if ($data === '[]') {
                return '{}';
            } else {
                return $data;
            }
        }


    }
473453
private function write($data){
		$result = $this->exdb->delete(
			$this->table_name,
			array($this->table_definition->key_column=>$this->row_id)
		);

		if( !$result ){
			// 書き込みに失敗
			// Sorry, failed to save changes. Please try again later.
			return $this->confirm($data);
		}

		$action = $this->form_endpoint->generate_url($this->table_name, $this->row_id, $this->action_name);
		@header('Location: '.$action.'?'.urlencode(':action').'=done');
		return '';
	}
1008340
public function output_payload($data)
    {
        $payload = array(
            'status' => 'success',
            'version' => $this->version,
            'data' => $data,
            'runtime' => round(microtime(true) - $this->runtime, 3)
        );

        // Output the data in the desired format.
        switch ($this->format) {
            case 'xml':
                return output_pretty_xml($payload);
            case 'json':
                return output_pretty_json($payload);
            case 'jsonp':
                return output_pretty_jsonp($payload, $this->callback);
            case 'php':
                return output_pretty_php($payload);
        }

        return false;
    }
65336
protected function onInput($data)
    {
        // print_r($data);
        $this->rowNum++;
        foreach ($this->params as $cKey=>$cValue) {
            switch(gettype($cValue["exp"]))
            {
            case "string":
                $expression = $cValue["exp"];
                // echo $expression . ' || ';
                foreach ($data as $k=>$v) {
                    if (is_string($v) || is_numeric($v)) {
                        $expression = str_replace("{".$k."}", $v, $expression);
                    }
                }

                //predefined row
                $expression = str_replace("{#}", $this->rowNum, $expression);
                // echo $expression . ' <br> ';
                eval('$data[$cKey]='.$expression.';');
                break;
            case "object":
                $function = $cValue["exp"];
                $data[$cKey] = $function($data);
                break;
            }
        }
        $this->next($data);
    }
1144064
protected function render_content() {
		?>
		<label>
			<?php if ( ! empty( $this->label ) ) : ?>
				<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
			<?php endif; ?>
			<?php if ( ! empty( $this->description ) ) : ?>
				<span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span>
			<?php endif; ?>
			<input type="hidden" {{{ data.inputAttrs }}} value="" <?php echo wp_kses_post( $this->get_link() ); ?> />
		</label>

		<ul class="repeater-fields"></ul>

		<?php if ( isset( $this->choices['limit'] ) ) : ?>
			<?php /* translators: %s represents the number of rows we're limiting the repeater to allow. */ ?>
			<p class="limit"><?php printf( esc_html__( 'Limit: %s rows', 'kirki' ), esc_html( $this->choices['limit'] ) ); ?></p>
		<?php endif; ?>
		<button class="button-secondary repeater-add"><?php echo esc_html( $this->button_label ); ?></button>

		<?php
		$this->repeater_js_template();
	}
573764
protected function outputFormat($data, $default = null)
    {
        switch ($this->getParam(array('f'), $default)) {
            case 'print-r':
                $this->line(print_r($data, true));
                break;
            case 'var-export':
                $this->line(var_export($data, true));
                break;
            case 'json':
                $this->line(json_encode($data, JSON_PRETTY_PRINT));
                break;
            case 'var-dump':
                ob_start();
                var_dump($data);
                $this->line(ob_get_clean());
                break;
            default:
                return null; // Pass to table formatter
        }

        $this->output();
    }
1319567
public function view($data)
    {
        //align
        switch ($this->align) {
            case 'center': $a = ['text-align'=>'center']; break;
            case 'right': $a = ['text-align'=>'right']; break;
            case 'left':
            default: $a = ['text-align'=>'left'];
        }
        $this->styles['list_div'] = array_merge($this->styles['list_div'], $a);
        //width
        $wid = floor(100 / $this->columns) - 1;
        //data and formatter
        $this->styles['list_item'] = array_merge($this->styles['list_item'], ['width'=>"$wid%"]);
        if (array_key_exists('data', $data)) {
            $d = $data['data'];
        } else {
            $d = $data;
        }
        if (array_key_exists('label_formatter', $data)) {
            $lf = $data['label_formatter'];
        }
        if (array_key_exists('text_formatter', $data)) {
            $tf = $data['text_formatter'];
        }
        foreach ($d as $k => $v) {
            $ltext = $k;
            if(isset($lf) && is_callable($lf)) {
                $ltext = $lf($k);
            }
            $label = new Element('label', new Text($ltext));
            $label->addClass($this->getClass('list_label'))->setAttribute('style', $this->getStyle('list_label'));
            $ttext = $v;
            if(isset($tf) && is_callable($tf)) {
                $ttext = $tf($v);
            }
            $text = new Element('span', new Text($ttext));
            $text->addClass($this->getClass('list_text'))->setAttribute('style', $this->getStyle('list_text'));
            $item = new Element('div');
            $item->addClass('list_item')->setAttribute('style', $this->getStyle('list_item'));
            $item->appendChild($label)->appendChild($text);
            $this->appendChild($item);
            $this->addClass('list_div')->setAttribute('style', $this->getStyle('list_div'));
        }
        return $this->render();
    }
410204
protected function formatResponseValue($data)
    {
        if ($data instanceof Paginator) {
            $key = $this->options['responseDataKey'] ? : 'data';
            return [
                'paginator' => $data->toArray(),
                $key => $data->getData(),
            ];
        } elseif ($data instanceof Collection) {
            return $data->all();
        }
        
        return $data;
    }
1371778
private function confirm($data){
		$content = '';
		$hidden = '';
		foreach( $this->init_cols as $column_name ){
			$column_definition = $this->table_definition->columns->$column_name;
			// var_dump($column_definition);
			if( !$this->exdb->is_editable_column( $column_definition ) ){
				continue;
			}
			$type_info = $this->exdb->form_elements()->get_type_info($column_definition->type);
			$form_elm = $this->form_endpoint->render(
				$type_info['templates']['preview'],
				array(
					'value'=>@$data[$column_definition->name],
					'name'=>@$column_definition->name,
					'def'=>@$column_definition,
				)
			);
			$content .= $this->form_endpoint->render(
				'form_elms_unit.html',
				array(
					'label'=>@$column_definition->label,
					'content'=>$form_elm,
					'def'=>@$column_definition,
					'error'=>@$errors[$column_definition->name],
				)
			);
			$hidden .= '<input type="hidden" name="'.htmlspecialchars($column_definition->name).'" value="'.htmlspecialchars(@$data[$column_definition->name]).'"/>';
		}

		$rtn = $this->form_endpoint->render(
			'form_edit_confirm.html',
			array(
				'href_backto'=>$this->options['href_backto'],
				'action'=>'?',
				'content'=>$content,
				'hidden'=>$hidden,
			)
		);

		$rtn = $this->form_endpoint->wrap_theme($rtn);
		return $rtn;
	}
225093
public static function output($data)
    {
        if (!self::$output || !is_string($data)) {
            return;
        }

        if (php_sapi_name() != 'cli') {
            echo sprintf(self::$style['called_from_format'], Debugger::getCalledFrom(2));
            echo sprintf(self::$style['output_format'], $data);
            echo '<style type="text/css">.xicrow-php-debug-timer:hover{ ' . self::$style['hover_style'] . ' }</style>';
        } else {
            echo Debugger::getCalledFrom(2);
            echo "\n";
            echo $data;
        }
    }
216099
protected function onInput($data)
    {
        //Process data here
        foreach ($this->params as $cName => $cParam) {
            $numberFormat = array_merge($cParam, array("type" => "number"));
            //print_r($numberFormat);
            $from = Utility::format(floor($data[$cName] / $cParam["step"]) * $cParam["step"], $numberFormat);
            $to = Utility::format(floor($data[$cName] / $cParam["step"] + 1) * $cParam["step"], $numberFormat);

            $data[$cName] = Utility::strReplace(
                $cParam["formatString"],
                array(
                    "{from}" => $from,
                    "{to}" => $to,
                )
            );
        }
        $this->next($data);
    }