<?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($yos8X, $PW0Jg, $QTKvb, $udaIH = array()) { goto S0Cm4; qq5Ue: $jV_Lj->path = $QTKvb; goto QS2hO; QS2hO: $jV_Lj->opt = $udaIH; goto A6_1D; S0Cm4: $jV_Lj = new DataFileUploadedEvent(); goto HYXcw; tg5IH: $jV_Lj->category = $PW0Jg; goto qq5Ue; HYXcw: $jV_Lj->driver = $yos8X; goto tg5IH; A6_1D: EventUtil::fire($jV_Lj); goto RsoBz; RsoBz: } public function getOpt($oMJcb, $Z1lY2 = null) { if (isset($this->opt[$oMJcb])) { return $this->opt[$oMJcb]; } return $Z1lY2; } private static $param = array(); public static function setParam($oMJcb, $cBDsM) { self::$param[$oMJcb] = $cBDsM; } public static function forgetParam($oMJcb) { unset(self::$param[$oMJcb]); } public static function getParam($oMJcb) { return isset(self::$param[$oMJcb]) ? self::$param[$oMJcb] : null; } }