src/View/Requirements_Backend.php
public function clear($fileOrID = null)
    {
        $types = [
            'javascript',
            'css',
            'customScript',
            'customCSS',
            'customHeadTags',
            'combinedFiles',
        ];
        foreach ($types as $type) {
            if ($fileOrID) {
                if (isset($this->{$type}[$fileOrID])) {
                    $this->disabled[$type][$fileOrID] = $this->{$type}[$fileOrID];
                    unset($this->{$type}[$fileOrID]);
                }
            } else {
                $this->disabled[$type] = $this->{$type};
                $this->{$type} = [];
            }
        }
    }
public function clear($fileOrID = null)
    {
        $types = [
            'javascript',
            'css',
            'customScript',
            'customCSS',
            'customHeadTags',
            'combinedFiles',
        ];
        foreach ($types as $type) {
            if ($fileOrID) {
                if (isset($this->{$type}[$fileOrID])) {
                    $this->disabled[$type][$fileOrID] = $this->{$type}[$fileOrID];
                    unset($this->{$type}[$fileOrID]);
                }
            } else {
                $this->disabled[$type] = $this->{$type};
                $this->{$type} = [];
            }
        }
    }
public function clear ( $ fileOrID = null ) { $ types = [ 'javascript' , 'css' , 'customScript' , 'customCSS' , 'customHeadTags' , 'combinedFiles' , ] ; foreach ( $ types as $ type ) { if ( $ fileOrID ) { if ( isset ( $ this -> { $ type } [ $ fileOrID ] ) ) { $ this -> disabled [ $ type ] [ $ fileOrID ] = $ this -> { $ type } [ $ fileOrID ] ; unset ( $ this -> { $ type } [ $ fileOrID ] ) ; } } else { $ this -> disabled [ $ type ] = $ this -> { $ type } ; $ this -> { $ type } = [ ] ; } } }
Clear either a single or all requirements

Caution: Clearing single rules added via customCSS and customScript only works if you
originally specified a $uniquenessID.

@param string|int $fileOrID
Clear either a single or all requirements