Your IP : 216.73.216.134


Current Path : /home/bijouxly/www/libraries/nextend/cache/
Upload File :
Current File : /home/bijouxly/www/libraries/nextend/cache/javascript.php

<?php
/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?><?php
nextendimport('nextend.cache.cache');

class NextendCacheJavascript extends NextendCache{
    
    var $_inline;
    
    function NextendCacheJavascript(){
        $this->_subfolder = 'js'.DIRECTORY_SEPARATOR;
        parent::NextendCache();
        $this->_filetype = 'js';
        $this->_inline = '';
        $this->_gzip = getNextend('gzip', 0);
    }
    
    function addInline($inline){
        $this->_inline.=$inline."\n";
    }
    
    function parseCached($cached){
        return $cached."\n\n".$this->_inline;
    }
    
    function parseHash($hash){
        return $hash.$this->_inline;
    }
    
    function getContentHeader(){
        return 'header("Content-type: text/javascript", true);';
    }
}