<?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($oMd7I) { self::$list[] = $oMd7I; } public static function get() { if (!self::$init) { self::$init = true; foreach (self::$list as $kEhTf => $y2Ltn) { if (is_string($y2Ltn)) { self::$list[$kEhTf] = app($y2Ltn); } } } return self::$list; } public static function updateBiz($qhsmj, $mZfPT, $yP0KF = '', $qOrzw = array()) { goto JKJBT; JKJBT: $qOrzw['biz'] = $qhsmj; goto EsUpu; Kqal3: foreach (self::get() as $ZO8gl) { $ZO8gl->update($mZfPT, $yP0KF, $qOrzw); } goto U3DqT; EsUpu: BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $mZfPT); goto Kqal3; U3DqT: } public static function update($mZfPT, $yP0KF = '', $qOrzw = array()) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $mZfPT); foreach (self::get() as $ZO8gl) { $ZO8gl->update($mZfPT, $yP0KF, $qOrzw); } } public static function delete($mZfPT) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $mZfPT); foreach (self::get() as $ZO8gl) { $ZO8gl->delete($mZfPT); } } }