<?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($JPoXh) { parent::__construct(IdUtil::generate('LayoutTable')); $this->layoutClosure = $JPoXh; } public function postSetup() { goto wu3at; nItVG: call_user_func($this->layoutClosure, $this); goto Qy_QX; wu3at: $this->context->html($this->column() . '_end')->html('<table class="ub-table border ub-content-bg">')->plain(); goto nItVG; Qy_QX: $this->context->html($this->column() . '_end')->html('</table>')->plain(); goto odUDy; odUDy: } public function layoutRow($JPoXh) { goto mPvQ5; aG9Aa: call_user_func($JPoXh, $this); goto aAjfQ; mPvQ5: $this->context->html($this->column() . '_end')->html('<tr>')->plain(); goto aG9Aa; aAjfQ: $this->context->html($this->column() . '_end')->html('</tr>')->plain(); goto OdUs2; OdUs2: } public function layoutCol($JPoXh) { goto SN8du; RoGU9: $this->context->html($this->column() . '_end')->html('</td>')->plain(); goto OErPS; SN8du: $this->context->html($this->column() . '_end')->html('<td>')->plain(); goto NytB2; NytB2: call_user_func($JPoXh, $this->context); goto RoGU9; OErPS: } public function render() { return ''; } }