<?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() { $Fpmtn = new static(); return $Fpmtn; } public function variables($olGRi) { $this->variables = $olGRi; return $this; } public function imageConfig($Tld20) { $this->imageConfig = $Tld20; return $this; } public function selectorDialogServer($BQkhX) { $this->selectorDialogServer = $BQkhX; return $this; } public static function imageConfigDefault() { goto Q193z; Wgc0b: return $PoEPz; goto tLPAx; Q193z: $PgwSF = 600; goto p4rzi; p4rzi: $uSU1w = 800; goto LeRjT; LeRjT: $PoEPz = array('width' => $PgwSF, 'height' => $uSU1w, 'backgroundImage' => modstart_web_url('asset/image/none.png'), 'font' => null, 'blocks' => array(array('type' => 'text', 'x' => $PgwSF / 2, 'y' => 100, 'data' => array('text' => '文字内容', 'color' => '#000000', 'bold' => false, 'size' => 20, 'align' => 'center')), array('type' => 'image', 'x' => $PgwSF / 2, 'y' => 200, 'data' => array('opacity' => 50, 'width' => 100, 'height' => 100, 'image' => modstart_web_url('asset/image/none.png'))), array('type' => 'qrcode', 'x' => $PgwSF / 2, 'y' => 300, 'data' => array('width' => 100, 'height' => 100, 'text' => '这里是二维码的内容')))); goto Wgc0b; tLPAx: } 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 MioBs; Vni_P: echo RenderUtil::view('module::Vendor.View.quickRun.imageDesign.index', $v844n); goto JZZ2I; MioBs: $this->prepareDefault(); goto pzePi; pzePi: $v844n = array('variables' => $this->variables, 'imageConfig' => $this->imageConfig, 'selectorDialogServer' => $this->selectorDialogServer); goto Vni_P; JZZ2I: } }