Prado\Collections\TPriorityMap::toArrayAbovePriority PHP Метод

toArrayAbovePriority() публичный Метод

Combines the map elements which have a priority above the parameter value
public toArrayAbovePriority ( $priority, $inclusive = true ) : array
Результат array the array of priorities keys with values of arrays of items that are above a specified priority. The priorities are sorted so important priorities, lower numerics, are first.
    public function toArrayAbovePriority($priority, $inclusive = true)
    {
        $this->sortPriorities();
        $items = array();
        foreach ($this->_d as $itemspriority => $itemsatpriority) {
            if (!$inclusive && $itemspriority <= $priority || $itemspriority < $priority) {
                continue;
            }
            $items = array_merge($items, $itemsatpriority);
        }
        return $items;
    }