<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Layout; use ModStart\Core\Util\IdUtil; use ModStart\Field\AbstractField; class LayoutTable extends AbstractField { protected $isLayoutField = true; private $layoutClosure = null; public function __construct($rDg26) { parent::__construct(IdUtil::generate('LayoutTable')); $this->layoutClosure = $rDg26; } public function postSetup() { goto tV0ag; tV0ag: $this->context->html($this->column() . '_end')->html('<table class="ub-table border ub-content-bg">')->plain(); goto E7fsR; mvjSk: $this->context->html($this->column() . '_end')->html('</table>')->plain(); goto o1Qxu; E7fsR: call_user_func($this->layoutClosure, $this); goto mvjSk; o1Qxu: } public function layoutRow($rDg26) { goto VwCcr; VwCcr: $this->context->html($this->column() . '_end')->html('<tr>')->plain(); goto w_RzO; w_RzO: call_user_func($rDg26, $this); goto dQFVM; dQFVM: $this->context->html($this->column() . '_end')->html('</tr>')->plain(); goto zlr03; zlr03: } public function layoutCol($rDg26) { goto ybS13; m5sau: call_user_func($rDg26, $this->context); goto cnLRm; cnLRm: $this->context->html($this->column() . '_end')->html('</td>')->plain(); goto SurXq; ybS13: $this->context->html($this->column() . '_end')->html('<td>')->plain(); goto m5sau; SurXq: } public function render() { return ''; } }