<?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($O9Vtg) { self::$list[] = $O9Vtg; } public static function get() { if (!self::$init) { self::$init = true; foreach (self::$list as $MFVkb => $YxV2x) { if (is_string($YxV2x)) { self::$list[$MFVkb] = app($YxV2x); } } } return self::$list; } public static function updateBiz($i9_MK, $YFzpa, $WUQUn = '', $EPwwc = array()) { goto qRzat; qRzat: $EPwwc['biz'] = $i9_MK; goto sgaJu; VjHsj: foreach (self::get() as $Osj8s) { $Osj8s->update($YFzpa, $WUQUn, $EPwwc); } goto snMgV; sgaJu: BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $YFzpa); goto VjHsj; snMgV: } public static function update($YFzpa, $WUQUn = '', $EPwwc = array()) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $YFzpa); foreach (self::get() as $Osj8s) { $Osj8s->update($YFzpa, $WUQUn, $EPwwc); } } public static function delete($YFzpa) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $YFzpa); foreach (self::get() as $Osj8s) { $Osj8s->delete($YFzpa); } } }