<?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($g3XgV, $g59Hh = array()) { goto wU0iI; hg6Vc: $this->layoutClosure = $g59Hh[0]; goto OnOSa; QKrjv: $this->label = $g3XgV; goto hg6Vc; wU0iI: parent::__construct(IdUtil::generate('LayoutPanel')); goto QKrjv; OnOSa: } public function postSetup() { goto fWKeV; fWKeV: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto Ka_Gy; Ka_Gy: call_user_func($this->layoutClosure, $this->context()); goto NxkMw; NxkMw: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto ABn0s; ABn0s: } public function render() { return ''; } }