function script($script, $scriptId = null) {
        if (!isset($scriptId) || !isset($this->_scriptIds[$scriptId])) {
            $this->_scripts[] = $script;
            if (isset($scriptId)) $this->_scriptIds[$scriptId] = true;
        }
    }
function script($script, $scriptId = null) {
        if (!isset($scriptId) || !isset($this->_scriptIds[$scriptId])) {
            $this->_scripts[] = $script;
            if (isset($scriptId)) $this->_scriptIds[$scriptId] = true;
        }
    }
function script ( $ script , $ scriptId = null ) { if ( ! isset ( $ scriptId ) || ! isset ( $ this -> _scriptIds [ $ scriptId ] ) ) { $ this -> _scripts [ ] = $ script ; if ( isset ( $ scriptId ) ) $ this -> _scriptIds [ $ scriptId ] = true ; } }
Include js code
@param $script string js code
@param $scriptId string|null Unique js code identifier to omit repeated inclusion
Include js code