src/View/Requirements_Backend.php
public function customScript($script, $uniquenessID = null)
    {
        if ($uniquenessID) {
            $this->customScript[$uniquenessID] = $script;
        } else {
            $this->customScript[] = $script;
        }
    }
public function customScript($script, $uniquenessID = null)
    {
        if ($uniquenessID) {
            $this->customScript[$uniquenessID] = $script;
        } else {
            $this->customScript[] = $script;
        }
    }
public function customScript ( $ script , $ uniquenessID = null ) { if ( $ uniquenessID ) { $ this -> customScript [ $ uniquenessID ] = $ script ; } else { $ this -> customScript [ ] = $ script ; } }
Register the given JavaScript code into the list of requirements

@param string $script The script content as a string (without enclosing <script> tag)
@param string $uniquenessID A unique ID that ensures a piece of code is only added once
Register the given JavaScript code into the list of requirements