<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SearchBox; use Module\Vendor\Provider\ProviderTrait; class SearchBoxProvider { use ProviderTrait; public static function all() { goto HbnyF; FK4_H: return $sX2oK; goto lEsg4; HbnyF: $sX2oK = self::listAll(); goto VeT5y; VeT5y: usort($sX2oK, function ($x8QyM, $u5boX) { if ($x8QyM->order() == $u5boX->order()) { return 0; } return $x8QyM->order() > $u5boX->order() ? 1 : -1; }); goto FK4_H; lEsg4: } public static function get($L1N0l) { return self::getByName($L1N0l); } public static function count() { return count(self::all()); } }