<?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($sEiap, $bY7Wp = array()) { goto Zo05j; HsKE2: $this->layoutClosure = $bY7Wp[0]; goto APbC5; nledr: $this->label = $sEiap; goto HsKE2; Zo05j: parent::__construct(IdUtil::generate('LayoutPanel')); goto nledr; APbC5: } public function postSetup() { goto jZZlT; jZZlT: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto ro50a; ro50a: call_user_func($this->layoutClosure, $this->context()); goto mTwcs; mTwcs: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto pP5kX; pP5kX: } public function render() { return ''; } }