protected function isOutdated($basePath, $sourceFile, $targetFile, $sourceExtension, $targetExtension)
    {
        $resultModificationTime = @filemtime("$basePath/$targetFile");
        if ($resultModificationTime === false || $resultModificationTime === null) {
            return true;
        }

        if ($resultModificationTime < @filemtime("$basePath/$sourceFile")) {
            return true;
        }

        if ($this->isOutdatedCallback === null) {
            return false;
        }

        return call_user_func($this->isOutdatedCallback, $basePath, $sourceFile, $targetFile, $sourceExtension, $targetExtension);
    }
protected function isOutdated($basePath, $sourceFile, $targetFile, $sourceExtension, $targetExtension)
    {
        $resultModificationTime = @filemtime("$basePath/$targetFile");
        if ($resultModificationTime === false || $resultModificationTime === null) {
            return true;
        }

        if ($resultModificationTime < @filemtime("$basePath/$sourceFile")) {
            return true;
        }

        if ($this->isOutdatedCallback === null) {
            return false;
        }

        return call_user_func($this->isOutdatedCallback, $basePath, $sourceFile, $targetFile, $sourceExtension, $targetExtension);
    }
protected function isOutdated ( $ basePath , $ sourceFile , $ targetFile , $ sourceExtension , $ targetExtension ) { $ resultModificationTime = @ filemtime ( "$basePath/$targetFile" ) ; if ( $ resultModificationTime === false || $ resultModificationTime === null ) { return true ; } if ( $ resultModificationTime < @ filemtime ( "$basePath/$sourceFile" ) ) { return true ; } if ( $ this -> isOutdatedCallback === null ) { return false ; } return call_user_func ( $ this -> isOutdatedCallback , $ basePath , $ sourceFile , $ targetFile , $ sourceExtension , $ targetExtension ) ; }
Checks whether asset convert result is outdated, and thus should be reconverted.
@param string $basePath the directory the $asset is relative to.
@param string $sourceFile the asset source file path, relative to [[$basePath]].
@param string $targetFile the converted asset file path, relative to [[$basePath]].
@param string $sourceExtension source asset file extension.
@param string $targetExtension target asset file extension.
@return bool whether asset is outdated or not.
@since 3.0.0
Checks whether asset convert result is outdated and thus should be reconverted .