/** * @return \CloverToHtml\Converter */ public static function getInstance() { return new Converter(new Hydrator(), RenderFactory::getInstance()); }
/** * 获取数据交易的内容 */ public function get_trade_content($data, $head, $attr, $wrapped_class = 'c52div', $more = '') { if ($more == '') { $more = $head; } if ($data->output != '') { $data->clear(); } $this->add_wrapped_div($data, '', $wrapped_class); $this->add_head($data, $head); $datas = $this->query_by_tag($head); $output = ''; $output .= RenderFactory::render_query($datas, $attr); $this->add_content($data, $output); $this->add_content($data, $this->get_button('更多', $this->get_url_by_tag($more), 'c52div_more_btn')); return $this->execute($data); }