<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SearchBox; use Module\Vendor\Provider\ProviderTrait; class SearchBoxProvider { use ProviderTrait; public static function all() { goto xHuFZ; xHuFZ: $qhpxU = self::listAll(); goto uNr68; uNr68: usort($qhpxU, function ($fRr3h, $gZCvG) { if ($fRr3h->order() == $gZCvG->order()) { return 0; } return $fRr3h->order() > $gZCvG->order() ? 1 : -1; }); goto bjRcb; bjRcb: return $qhpxU; goto tVAzH; tVAzH: } public static function get($BjHij) { return self::getByName($BjHij); } public static function count() { return count(self::all()); } }