文件操作 - Less.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/smart-slider-3/Nextend/Framework/Asset/Css/Less/Less.php
编辑文件内容
<?php namespace Nextend\Framework\Asset\Css\Less; use Nextend\Framework\Asset\AssetManager; use Nextend\Framework\Asset\Css\Css; class Less { public static function addFile($pathToFile, $group, $context = array(), $importDir = null) { AssetManager::$less->addFile(array( 'file' => $pathToFile, 'context' => $context, 'importDir' => $importDir ), $group); } public static function build() { foreach (AssetManager::$less->getFiles() as $group => $file) { if (substr($file, 0, 2) == '//') { Css::addUrl($file); } else if (!realpath($file)) { // For database cache the $file contains the content of the generated CSS file Css::addCode($file, $group, true); } else { Css::addFile($file, $group); } } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件