Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/minifiers/minify_helper.php
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Line(s) | |||||
foreach ($iterator as $file_info) { | foreach ($iterator as $file_info) { | ||||
if ( !$file_info->isDir() && preg_match('/^(c|d)_.*.(css|js)$/', $file_info->getFilename()) ) { | if ( !$file_info->isDir() && preg_match('/^(c|d)_.*.(css|js)$/', $file_info->getFilename()) ) { | ||||
unlink( $file_info->getPathname() ); | unlink( $file_info->getPathname() ); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Dumps the assets. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function dump() | |||||
{ | |||||
/** @var kCurlHelper $curl_helper */ | |||||
$curl_helper = $this->Application->recallObject('CurlHelper'); | |||||
$curl_helper->setOptions(array( | |||||
CURLOPT_COOKIE => 'debug_off=1', | |||||
)); | |||||
$curl_helper->Send($this->Application->BaseURL()); | |||||
} | |||||
/** | |||||
* Compress $string based on $extension | * Compress $string based on $extension | ||||
* | * | ||||
* @param string $string | * @param string $string | ||||
* @param string $extension | * @param string $extension | ||||
* @return void | * @return void | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
public function compressString(&$string, $extension) | public function compressString(&$string, $extension) | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |