final protected function loadJs($src, $fromTheme = false, $once = false) {
        if ($once && !$this->canLoadAsset($src, 'js'))
            return null;
        return '<script type="text/javascript" src="' . $this->getFile($src . '.js', $fromTheme) . '"></script>' . "\n";
    }
final protected function loadJs($src, $fromTheme = false, $once = false) {
        if ($once && !$this->canLoadAsset($src, 'js'))
            return null;
        return '<script type="text/javascript" src="' . $this->getFile($src . '.js', $fromTheme) . '"></script>' . "\n";
    }
final protected function loadJs ( $ src , $ fromTheme = false , $ once = false ) { if ( $ once && ! $ this -> canLoadAsset ( $ src , 'js' ) ) return null ; return '<script type="text/javascript" src="' . $ this -> getFile ( $ src . '.js' , $ fromTheme ) . '"></script>' . "\n" ; }
Loads a javascript file
@param string $src Filename without the extension with base as ./assets
@param boolean $fromTheme Indicates whether to load the javascript from the theme or current module
@param boolean $once Indicates whether to load the stylesheet only once
@return string|null
Loads a javascript file