142 $resourcesByFilter =
new self();
144 foreach ($this->resources as $resource)
146 if (array_key_exists($field, $resource) && $resource[$field] === $value)
148 $resourcesByFilter->
add(
149 $resource[self::KEY_PATH],
150 $resource[self::KEY_TYPE],
151 $resource[self::KEY_LOCATION]
156 return $resourcesByFilter;
191 $columnLocation = array_column($this->resources, self::KEY_LOCATION);
192 $columnOrder = array_column($this->resources, self::KEY_ORDER);
193 array_multisort($columnLocation, $columnOrder, $this->resources);