コード例 #1
0
ファイル: css.php プロジェクト: 01J/bealtine
 function NextendCacheCss()
 {
     $this->_subfolder = 'css' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'css';
     $this->_gzip = getNextend('gzip', 0);
 }
コード例 #2
0
ファイル: javascript.php プロジェクト: 01J/bealtine
 function NextendCacheJavascript()
 {
     $this->_subfolder = 'js' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'js';
     $this->_inline = '';
     $this->_gzip = getNextend('gzip', 0);
 }
コード例 #3
0
ファイル: image.php プロジェクト: 01J/bealtine
 function NextendImage()
 {
     $this->_subfolder = 'image' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'png';
     $time = time();
     $currentcachetime = $time - $time % $this->_cacheTime;
     $this->_folder = $this->_path . $this->_prename . $currentcachetime . DIRECTORY_SEPARATOR;
     $this->createCacheSubFolder($this->_folder, $currentcachetime);
 }
コード例 #4
0
ファイル: less.php プロジェクト: pguilford/vcomcc
 function NextendCacheLess()
 {
     $this->_subfolder = 'less' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'css';
     $this->_less = new nlessc();
     $this->_less->addImportDir(NEXTENDLIBRARYASSETS . DIRECTORY_SEPARATOR . 'less' . DIRECTORY_SEPARATOR);
     $this->_image = new NextendImage();
     $this->_image->loadLess($this);
     $this->_image_cacheTime = $this->_cacheTime;
     $this->_context = array();
 }
コード例 #5
0
ファイル: image.php プロジェクト: pguilford/vcomcc
 function NextendCacheImage()
 {
     $this->_subfolder = 'image' . DIRECTORY_SEPARATOR;
     $this->backgrouncolor = array(0, 0, 0);
     parent::NextendCache();
     if ($this->_cacheTime == 'static' || $this->_cacheTime == 0) {
         $this->_folder = $this->_path . 'static' . DIRECTORY_SEPARATOR;
         $currentcachetime = 0;
     } else {
         $time = time();
         $currentcachetime = $time - $time % $this->_cacheTime;
         $this->_folder = $this->_path . $this->_prename . $currentcachetime . DIRECTORY_SEPARATOR;
     }
     $this->createCacheSubFolder($this->_folder, $currentcachetime);
 }