File src/addon/ResourceSorter.php

class Lia\Addon\ResourceSorter

Convenience class for sorting css & js files before they are concatenated together.
See source code at /src/addon/ResourceSorter.php

Constants

Properties

  • public string $fqn = 'lia:server.resourcesorter';
  • protected bool $didSet=false;
  • protected array $orders=['css'=>[], 'js'=>[]];

Methods

  • public function setResourceOrder($ext,$names, $prepend=true) Give an array of file names in the order they should be sent to the browser.

  • public function getSortedFiles($from_unsorted)