<?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($Cq64_, $RSGSj = array()) { goto ZF1u2; WILnQ: $this->label = $Cq64_; goto noffB; ZF1u2: parent::__construct(IdUtil::generate('LayoutPanel')); goto WILnQ; noffB: $this->layoutClosure = $RSGSj[0]; goto QN_1s; QN_1s: } public function postSetup() { goto YSsnf; tza2O: call_user_func($this->layoutClosure, $this->context()); goto WfnNq; YSsnf: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto tza2O; WfnNq: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto cUvFG; cUvFG: } public function render() { return ''; } }