<?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($GjNrA, $nvZ9A = array()) { goto zBgcg; zBgcg: parent::__construct(IdUtil::generate('LayoutPanel')); goto V8ibF; V8ibF: $this->label = $GjNrA; goto NWKcO; NWKcO: $this->layoutClosure = $nvZ9A[0]; goto ygmqA; ygmqA: } public function postSetup() { goto AQedQ; zlewR: call_user_func($this->layoutClosure, $this->context()); goto XfNEw; XfNEw: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto HF2Ec; AQedQ: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto zlewR; HF2Ec: } public function render() { return ''; } }