<?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($sVLvF, $lLyBI = array()) { goto yaIo2; Rcnce: $this->label = $sVLvF; goto RdOG2; RdOG2: $this->layoutClosure = $lLyBI[0]; goto KKJi9; yaIo2: parent::__construct(IdUtil::generate('LayoutPanel')); goto Rcnce; KKJi9: } public function postSetup() { goto yD05u; nr_TW: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto LUu9E; yD05u: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto EOLv6; EOLv6: call_user_func($this->layoutClosure, $this->context()); goto nr_TW; LUu9E: } public function render() { return ''; } }