PHP Class rmrevin\yii\minify\components\MinifyComponent

Show file Open project: rmrevin/yii2-minify-view

Protected Properties

Property Type Description
$view rmrevin\yii\minify\View

Public Methods

Method Description
__construct ( View $view ) MinifyComponent constructor.
export ( )

Protected Methods

Method Description
_getSummaryFilesHash ( array $files ) : string
cleanFileName ( string $file ) : string
getAbsoluteFilePath ( string $file ) : string
isContainsConditionalComment ( string $string ) : boolean
isUrl ( string $url, boolean $checkSlash = true ) : boolean
prepareResultFile ( string $resultFile ) : string
thisFileNeedMinify ( string $file, string $html ) : boolean

Method Details

__construct() public method

MinifyComponent constructor.
public __construct ( View $view )
$view rmrevin\yii\minify\View

_getSummaryFilesHash() protected method

protected _getSummaryFilesHash ( array $files ) : string
$files array
return string

cleanFileName() protected method

protected cleanFileName ( string $file ) : string
$file string
return string

export() abstract public method

abstract public export ( )

getAbsoluteFilePath() protected method

protected getAbsoluteFilePath ( string $file ) : string
$file string
return string

isContainsConditionalComment() protected method

protected isContainsConditionalComment ( string $string ) : boolean
$string string
return boolean

isUrl() protected method

protected isUrl ( string $url, boolean $checkSlash = true ) : boolean
$url string
$checkSlash boolean
return boolean

prepareResultFile() protected method

protected prepareResultFile ( string $resultFile ) : string
$resultFile string
return string

thisFileNeedMinify() protected method

protected thisFileNeedMinify ( string $file, string $html ) : boolean
$file string
$html string
return boolean

Property Details

$view protected property

protected View,rmrevin\yii\minify $view
return rmrevin\yii\minify\View