Location: PHPKode > scripts > JS > js/JS.php
<?php
class JS {
	private $files = array();
	public function addJS($file){
		$this->files[] = $file;
	}
	public function linkJS($file){
		global $__log;
		echo "<script language='javascript' type='application/javascript' src='$file'></script>".LINE_BREAK;
	}
	public function linkAddedJS(){
		foreach($this->files as $file){
			$this->linkJS($file);
		}
	}
}
?>
Return current item: JS