<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Layout; use ModStart\Core\Util\IdUtil; use ModStart\Field\AbstractField; class LayoutLine extends AbstractField { protected $isLayoutField = true; private $layoutClosure = null; public function __construct($WtBPF, $rxS2C = array()) { goto Zs0tm; Zs0tm: parent::__construct(IdUtil::generate('LayoutPanel')); goto KUUPD; ZGhj9: $this->layoutClosure = $rxS2C[0]; goto icjzR; KUUPD: $this->label = $WtBPF; goto ZGhj9; icjzR: } public function postSetup() { goto bkG2s; bkG2s: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto aIpjO; NSTjm: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto stOJS; aIpjO: call_user_func($this->layoutClosure, $this->context()); goto NSTjm; stOJS: } public function render() { return ''; } }