<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SearchBox; use Module\Vendor\Provider\ProviderTrait; class SearchBoxProvider { use ProviderTrait; public static function all() { goto cmNOU; cmNOU: $ZzHwD = self::listAll(); goto BKKzE; LY3CB: return $ZzHwD; goto xz72k; BKKzE: usort($ZzHwD, function ($lWVLn, $qycC8) { if ($lWVLn->order() == $qycC8->order()) { return 0; } return $lWVLn->order() > $qycC8->order() ? 1 : -1; }); goto LY3CB; xz72k: } public static function get($TTiWe) { return self::getByName($TTiWe); } public static function count() { return count(self::all()); } }