public function printScripts($return = false)
    {
        $scripts = '';
        foreach ($this->getScripts() as $script) {
            $scripts .= '<script type="text/javascript" src="' . $script . '"></script>';
        }

        if ($return) {
            return $scripts;
        }
        else {
            echo $scripts;
        }
    }
public function printScripts($return = false)
    {
        $scripts = '';
        foreach ($this->getScripts() as $script) {
            $scripts .= '<script type="text/javascript" src="' . $script . '"></script>';
        }

        if ($return) {
            return $scripts;
        }
        else {
            echo $scripts;
        }
    }
public function printScripts ( $ return = false ) { $ scripts = '' ; foreach ( $ this -> getScripts ( ) as $ script ) { $ scripts .= '<script type="text/javascript" src="' . $ script . '"></script>' ; } if ( $ return ) { return $ scripts ; } else { echo $ scripts ; } }
Prints javascript script tags for all scripts that need to be included on page

@param boolean $return if true it returns the scripts rather then echoing them
Prints javascript script tags for all scripts that need to be included on page