<?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($ljD_1, $fVt3n, $tGXA6, $Jjf9U = array()) { goto bhhiH; hmhRn: $lefmL->path = $tGXA6; goto jQGUW; bhhiH: $lefmL = new DataFileUploadedEvent(); goto MQKU9; jQGUW: $lefmL->opt = $Jjf9U; goto XYKaj; MQKU9: $lefmL->driver = $ljD_1; goto Pbz6i; Pbz6i: $lefmL->category = $fVt3n; goto hmhRn; XYKaj: EventUtil::fire($lefmL); goto bVKQQ; bVKQQ: } public function getOpt($ax5t3, $eS4om = null) { if (isset($this->opt[$ax5t3])) { return $this->opt[$ax5t3]; } return $eS4om; } private static $param = array(); public static function setParam($ax5t3, $FT9zA) { self::$param[$ax5t3] = $FT9zA; } public static function forgetParam($ax5t3) { unset(self::$param[$ax5t3]); } public static function getParam($ax5t3) { return isset(self::$param[$ax5t3]) ? self::$param[$ax5t3] : null; } }