<?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($IJdfw, $CUZy6 = array()) { goto kKDxo; kKDxo: parent::__construct(IdUtil::generate('LayoutPanel')); goto guCvX; guCvX: $this->label = $IJdfw; goto izt52; izt52: $this->layoutClosure = $CUZy6[0]; goto ghKQw; ghKQw: } public function postSetup() { goto DC3Ns; DC3Ns: $this->context->html($this->column() . '_start')->html('<div class="line"><div class="label">' . $this->label . ':</div><div class="field">')->plain(); goto oiUmw; OO4hL: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto rx53e; oiUmw: call_user_func($this->layoutClosure, $this->context()); goto OO4hL; rx53e: } public function render() { return ''; } }