<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SiteUrl; use ModStart\Core\Exception\BizException; class SiteUrlProvider { private static $list = array(); private static $init = false; public static function register($tcA2a) { self::$list[] = $tcA2a; } public static function get() { if (!self::$init) { self::$init = true; foreach (self::$list as $d2HEV => $hf0nR) { if (is_string($hf0nR)) { self::$list[$d2HEV] = app($hf0nR); } } } return self::$list; } public static function updateBiz($eV8cW, $HheJC, $BRqP6 = '', $mzzZ3 = array()) { goto VHRwJ; VHRwJ: $mzzZ3['biz'] = $eV8cW; goto D4tLu; D4tLu: BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $HheJC); goto rOKaz; rOKaz: foreach (self::get() as $dmHFN) { $dmHFN->update($HheJC, $BRqP6, $mzzZ3); } goto dD_m0; dD_m0: } public static function update($HheJC, $BRqP6 = '', $mzzZ3 = array()) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $HheJC); foreach (self::get() as $dmHFN) { $dmHFN->update($HheJC, $BRqP6, $mzzZ3); } } public static function delete($HheJC) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $HheJC); foreach (self::get() as $dmHFN) { $dmHFN->delete($HheJC); } } }