<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Data\Event; use ModStart\Core\Util\EventUtil; class DataFileUploadedEvent { const OPT_IMAGE_COMPRESS_IGNORE = 'imageCompressIgnore'; const OPT_IMAGE_WATERMARK_IGNORE = 'imageWatermarkIgnore'; public $driver; public $category; public $path; public $opt; public static function fire($Rk_um, $IaATa, $aurrr, $ey5yp = array()) { goto QSCYm; QSCYm: $h_uF5 = new DataFileUploadedEvent(); goto ZywRF; Stpxc: EventUtil::fire($h_uF5); goto jxUtR; oCrFX: $h_uF5->opt = $ey5yp; goto Stpxc; FEkZV: $h_uF5->path = $aurrr; goto oCrFX; ZywRF: $h_uF5->driver = $Rk_um; goto kOAFd; kOAFd: $h_uF5->category = $IaATa; goto FEkZV; jxUtR: } public function getOpt($GUcFO, $qqJ9g = null) { if (isset($this->opt[$GUcFO])) { return $this->opt[$GUcFO]; } return $qqJ9g; } private static $param = array(); public static function setParam($GUcFO, $ib3B9) { self::$param[$GUcFO] = $ib3B9; } public static function forgetParam($GUcFO) { unset(self::$param[$GUcFO]); } public static function getParam($GUcFO) { return isset(self::$param[$GUcFO]) ? self::$param[$GUcFO] : null; } }