<?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() { $PhDXH = new static(); return $PhDXH; } public function variables($Yrxix) { $this->variables = $Yrxix; return $this; } public function imageConfig($d69jw) { $this->imageConfig = $d69jw; return $this; } public function selectorDialogServer($S3B0j) { $this->selectorDialogServer = $S3B0j; return $this; } public static function imageConfigDefault() { goto VZy5c; ZOLDB: return $akSp2; goto jzmn_; VZy5c: $aXFIh = 600; goto u6KG6; LOx8X: $akSp2 = array('width' => $aXFIh, 'height' => $oqjPA, 'backgroundImage' => modstart_web_url('asset/image/none.png'), 'font' => null, 'blocks' => array(array('type' => 'text', 'x' => $aXFIh / 2, 'y' => 100, 'data' => array('text' => '文字内容', 'color' => '#000000', 'bold' => false, 'size' => 20, 'align' => 'center')), array('type' => 'image', 'x' => $aXFIh / 2, 'y' => 200, 'data' => array('opacity' => 50, 'width' => 100, 'height' => 100, 'image' => modstart_web_url('asset/image/none.png'))), array('type' => 'qrcode', 'x' => $aXFIh / 2, 'y' => 300, 'data' => array('width' => 100, 'height' => 100, 'text' => '这里是二维码的内容')))); goto ZOLDB; u6KG6: $oqjPA = 800; goto LOx8X; jzmn_: } 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 PO5Xv; PO5Xv: $this->prepareDefault(); goto tvFJ_; bVi2b: echo RenderUtil::view('module::Vendor.View.quickRun.imageDesign.index', $sr5M7); goto dJI73; tvFJ_: $sr5M7 = array('variables' => $this->variables, 'imageConfig' => $this->imageConfig, 'selectorDialogServer' => $this->selectorDialogServer); goto bVi2b; dJI73: } }