<?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($znmpZ, $lUGZC = array()) { goto aJZ3t; aJZ3t: parent::__construct(IdUtil::generate('LayoutPanel')); goto VfbrL; VfbrL: $this->label = $znmpZ; goto jEmJA; jEmJA: $this->layoutClosure = $lUGZC[0]; goto og1B_; og1B_: } public function postSetup() { goto xSpd_; xSpd_: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto Ibkek; M7ZBY: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto Cz0x5; Ibkek: call_user_func($this->layoutClosure, $this->context()); goto M7ZBY; Cz0x5: } public function render() { return ''; } }