<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\QuickRun\ImageDesign; use ModStart\Core\Util\RenderUtil; use ModStart\Layout\Buildable; class ImageDesign implements Buildable { private $variables = array(); private $imageConfig = array(); private $selectorDialogServer = null; public static function make() { $JyCdb = new static(); return $JyCdb; } public function variables($euKXb) { $this->variables = $euKXb; return $this; } public function imageConfig($dC69m) { $this->imageConfig = $dC69m; return $this; } public function selectorDialogServer($lbEYy) { $this->selectorDialogServer = $lbEYy; return $this; } public static function imageConfigDefault() { goto OcRDr; VMUMN: $p5fuC = 800; goto XhDyF; XhDyF: $IRUR1 = array('width' => $PEjiY, 'height' => $p5fuC, 'backgroundImage' => modstart_web_url('asset/image/none.png'), 'font' => null, 'blocks' => array(array('type' => 'text', 'x' => $PEjiY / 2, 'y' => 100, 'data' => array('text' => '文字内容', 'color' => '#000000', 'bold' => false, 'size' => 20, 'align' => 'center')), array('type' => 'image', 'x' => $PEjiY / 2, 'y' => 200, 'data' => array('opacity' => 50, 'width' => 100, 'height' => 100, 'image' => modstart_web_url('asset/image/none.png'))), array('type' => 'qrcode', 'x' => $PEjiY / 2, 'y' => 300, 'data' => array('width' => 100, 'height' => 100, 'text' => '这里是二维码的内容')))); goto C12Jv; OcRDr: $PEjiY = 600; goto VMUMN; C12Jv: return $IRUR1; goto jy47Y; jy47Y: } private function prepareDefault() { if (empty($this->imageConfig)) { $this->imageConfig = self::imageConfigDefault(); } if (empty($this->selectorDialogServer)) { $this->selectorDialogServer = modstart_admin_url('data/file_manager'); } } public function build() { goto B4h4T; B4h4T: $this->prepareDefault(); goto b7OMM; Nyb3v: echo RenderUtil::view('module::Vendor.View.quickRun.imageDesign.index', $OpiIU); goto uSZJh; b7OMM: $OpiIU = array('variables' => $this->variables, 'imageConfig' => $this->imageConfig, 'selectorDialogServer' => $this->selectorDialogServer); goto Nyb3v; uSZJh: } }