protected function addFileModificationImprintToHrefUrl ($url, $path) {
		$questionMarkPos = strpos($url, '?');
		$separator = ($questionMarkPos === FALSE) ? '?' : '&';
		$strippedUrl = $questionMarkPos !== FALSE ? substr($url, $questionMarkPos) : $url ;
		$srcPath = $this->getAppRoot() . substr($strippedUrl, strlen(self::$basePath));
		if (self::$globalOptions['fileChecking'] == 'filemtime') {
			$fileMTime = self::getFileImprint($srcPath);
			$url .= $separator . '_fmt=' . date(
				self::FILE_MODIFICATION_DATE_FORMAT,
				(int)$fileMTime
			);
		} else {
			$url .= $separator . '_md5=' . self::getFileImprint($srcPath);
		}
		return $url;
	}
protected function addFileModificationImprintToHrefUrl ($url, $path) {
		$questionMarkPos = strpos($url, '?');
		$separator = ($questionMarkPos === FALSE) ? '?' : '&';
		$strippedUrl = $questionMarkPos !== FALSE ? substr($url, $questionMarkPos) : $url ;
		$srcPath = $this->getAppRoot() . substr($strippedUrl, strlen(self::$basePath));
		if (self::$globalOptions['fileChecking'] == 'filemtime') {
			$fileMTime = self::getFileImprint($srcPath);
			$url .= $separator . '_fmt=' . date(
				self::FILE_MODIFICATION_DATE_FORMAT,
				(int)$fileMTime
			);
		} else {
			$url .= $separator . '_md5=' . self::getFileImprint($srcPath);
		}
		return $url;
	}
protected function addFileModificationImprintToHrefUrl ( $ url , $ path ) { $ questionMarkPos = strpos ( $ url , '?' ) ; $ separator = ( $ questionMarkPos === FALSE ) ? '?' : '&' ; $ strippedUrl = $ questionMarkPos !== FALSE ? substr ( $ url , $ questionMarkPos ) : $ url ; $ srcPath = $ this -> getAppRoot ( ) . substr ( $ strippedUrl , strlen ( self :: $ basePath ) ) ; if ( self :: $ globalOptions [ 'fileChecking' ] == 'filemtime' ) { $ fileMTime = self :: getFileImprint ( $ srcPath ) ; $ url .= $ separator . '_fmt=' . date ( self :: FILE_MODIFICATION_DATE_FORMAT , ( int ) $ fileMTime ) ; } else { $ url .= $ separator . '_md5=' . self :: getFileImprint ( $ srcPath ) ; } return $ url ; }
Add to href URL file modification param by original file
@param  string $url
@param  string $path
@return string
Add to href URL file modification param by original file