<?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() { $n95uW = new static(); return $n95uW; } public function variables($BsUt5) { $this->variables = $BsUt5; return $this; } public function imageConfig($D2OtO) { $this->imageConfig = $D2OtO; return $this; } public function selectorDialogServer($IlF8n) { $this->selectorDialogServer = $IlF8n; return $this; } public static function imageConfigDefault() { goto tbDnS; MEZ8R: return $MK0sx; goto MtuCL; tbDnS: $HQH7i = 600; goto C2bed; C2bed: $OLhuR = 800; goto JERJD; JERJD: $MK0sx = array('width' => $HQH7i, 'height' => $OLhuR, 'backgroundImage' => modstart_web_url('asset/image/none.png'), 'font' => null, 'blocks' => array(array('type' => 'text', 'x' => $HQH7i / 2, 'y' => 100, 'data' => array('text' => '文字内容', 'color' => '#000000', 'bold' => false, 'size' => 20, 'align' => 'center')), array('type' => 'image', 'x' => $HQH7i / 2, 'y' => 200, 'data' => array('opacity' => 50, 'width' => 100, 'height' => 100, 'image' => modstart_web_url('asset/image/none.png'))), array('type' => 'qrcode', 'x' => $HQH7i / 2, 'y' => 300, 'data' => array('width' => 100, 'height' => 100, 'text' => '这里是二维码的内容')))); goto MEZ8R; MtuCL: } 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 IrOod; IrOod: $this->prepareDefault(); goto KxW6X; lTIJh: echo RenderUtil::view('module::Vendor.View.quickRun.imageDesign.index', $i5RkB); goto prxF0; KxW6X: $i5RkB = array('variables' => $this->variables, 'imageConfig' => $this->imageConfig, 'selectorDialogServer' => $this->selectorDialogServer); goto lTIJh; prxF0: } }