<?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($FOLBJ) { parent::__construct(IdUtil::generate('LayoutTable')); $this->layoutClosure = $FOLBJ; } public function postSetup() { goto IY3Xq; LZrwG: $this->context->html($this->column() . '_end')->html('</table>')->plain(); goto elLrV; IY3Xq: $this->context->html($this->column() . '_end')->html('<table class="ub-table border ub-content-bg">')->plain(); goto cbjEG; cbjEG: call_user_func($this->layoutClosure, $this); goto LZrwG; elLrV: } public function layoutRow($FOLBJ) { goto cVPQW; D2o3g: $this->context->html($this->column() . '_end')->html('</tr>')->plain(); goto utI2H; gr44U: call_user_func($FOLBJ, $this); goto D2o3g; cVPQW: $this->context->html($this->column() . '_end')->html('<tr>')->plain(); goto gr44U; utI2H: } public function layoutCol($FOLBJ) { goto ixwxu; ixwxu: $this->context->html($this->column() . '_end')->html('<td>')->plain(); goto PU0kw; PU0kw: call_user_func($FOLBJ, $this->context); goto j913j; j913j: $this->context->html($this->column() . '_end')->html('</td>')->plain(); goto tuUzx; tuUzx: } public function render() { return ''; } }