<?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($ofcu0) { parent::__construct(IdUtil::generate('LayoutTable')); $this->layoutClosure = $ofcu0; } public function postSetup() { goto OQvLp; MyhTZ: $this->context->html($this->column() . '_end')->html('</table>')->plain(); goto j0B0E; GR395: call_user_func($this->layoutClosure, $this); goto MyhTZ; OQvLp: $this->context->html($this->column() . '_end')->html('<table class="ub-table border ub-content-bg">')->plain(); goto GR395; j0B0E: } public function layoutRow($ofcu0) { goto cYk3N; ble1u: $this->context->html($this->column() . '_end')->html('</tr>')->plain(); goto HSvGU; pGaXC: call_user_func($ofcu0, $this); goto ble1u; cYk3N: $this->context->html($this->column() . '_end')->html('<tr>')->plain(); goto pGaXC; HSvGU: } public function layoutCol($ofcu0) { goto mdW9F; o8Rpy: $this->context->html($this->column() . '_end')->html('</td>')->plain(); goto A7XVQ; gTKrY: call_user_func($ofcu0, $this->context); goto o8Rpy; mdW9F: $this->context->html($this->column() . '_end')->html('<td>')->plain(); goto gTKrY; A7XVQ: } public function render() { return ''; } }