<?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($yP7h6, $HPXJC = array()) { goto yGkUd; yGkUd: parent::__construct(IdUtil::generate('LayoutPanel')); goto Q05D8; Q05D8: $this->label = $yP7h6; goto nLCDx; nLCDx: $this->layoutClosure = $HPXJC[0]; goto Ybsfj; Ybsfj: } public function postSetup() { goto lD_SZ; vm4BO: call_user_func($this->layoutClosure, $this->context()); goto abLCH; abLCH: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto Kahyf; lD_SZ: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto vm4BO; Kahyf: } public function render() { return ''; } }