public function setCustomStylesheets($customStylesheets)
    {
        $this->customStylesheets = [];
        if (!$customStylesheets) {
            return;
        }
        foreach ($customStylesheets as $stylesheet) {
            if (!isset($this->customStylesheets[$stylesheet['priority']])) {
                $this->customStylesheets[$stylesheet['priority']] = [];
            }

            $this->customStylesheets[$stylesheet['priority']][] = $stylesheet['path'];
        }
    }
public function setCustomStylesheets($customStylesheets)
    {
        $this->customStylesheets = [];
        if (!$customStylesheets) {
            return;
        }
        foreach ($customStylesheets as $stylesheet) {
            if (!isset($this->customStylesheets[$stylesheet['priority']])) {
                $this->customStylesheets[$stylesheet['priority']] = [];
            }

            $this->customStylesheets[$stylesheet['priority']][] = $stylesheet['path'];
        }
    }
public function setCustomStylesheets ( $ customStylesheets ) { $ this -> customStylesheets = [ ] ; if ( ! $ customStylesheets ) { return ; } foreach ( $ customStylesheets as $ stylesheet ) { if ( ! isset ( $ this -> customStylesheets [ $ stylesheet [ 'priority' ] ] ) ) { $ this -> customStylesheets [ $ stylesheet [ 'priority' ] ] = [ ] ; } $ this -> customStylesheets [ $ stylesheet [ 'priority' ] ] [ ] = $ stylesheet [ 'path' ] ; } }
Sets the custom stylesheets grouped by priority.

@param array $customStylesheets Array of XSL stylesheets. Each entry
consists in a hash having "path" and "priority" keys.
Sets the custom stylesheets grouped by priority .