method getOrder documentation in bbn\Appui\Dashboard

Gets an orderder array of the widgets' keys

function(array $widgets) { $ret = []; $toend = []; if (bbn\X::isAssoc($widgets)) { $widgets = \array_values($widgets); } foreach ($widgets as $widget) { if ( Str::isInteger($widget[$this->archOpt['num']]) && !\array_key_exists($widget[$this->archOpt['num']], $ret) ) { $ret[$widget[$this->archOpt['num']]] = $widget['key']; } else { $toend[] = $widget['key']; } } \ksort($ret); return \array_values(\array_merge($ret, $toend)); }

Gets an orderder array of the widgets' keys BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.