protected function _getFileUrls( $baseUrl, $basePath, $param, stdClass $package, &$timestamp )
	{
		$timestamp = (int) $timestamp;
		$filesToDisplay = array();

		foreach( $package->fileIncludes as $singleFile )
		{
			$filename = $basePath . $singleFile->path . $singleFile->text;

			if( DIRECTORY_SEPARATOR !== '/' ) {
				$filename = str_replace( '/', DIRECTORY_SEPARATOR, $filename );
			}

			if( !is_file( $filename ) || ( $fileTime = filemtime( $filename ) ) === false ) {
				throw new MW_Jsb2_Exception( sprintf( 'Unable to read filetime of file "%1$s"', $filename ) );
			}

			$timestamp = max( $timestamp, $fileTime );
			$filesToDisplay[] = $baseUrl . $singleFile->path . $singleFile->text . $param . $fileTime;
		}

		return $filesToDisplay;
	}
protected function _getFileUrls( $baseUrl, $basePath, $param, stdClass $package, &$timestamp )
	{
		$timestamp = (int) $timestamp;
		$filesToDisplay = array();

		foreach( $package->fileIncludes as $singleFile )
		{
			$filename = $basePath . $singleFile->path . $singleFile->text;

			if( DIRECTORY_SEPARATOR !== '/' ) {
				$filename = str_replace( '/', DIRECTORY_SEPARATOR, $filename );
			}

			if( !is_file( $filename ) || ( $fileTime = filemtime( $filename ) ) === false ) {
				throw new MW_Jsb2_Exception( sprintf( 'Unable to read filetime of file "%1$s"', $filename ) );
			}

			$timestamp = max( $timestamp, $fileTime );
			$filesToDisplay[] = $baseUrl . $singleFile->path . $singleFile->text . $param . $fileTime;
		}

		return $filesToDisplay;
	}
protected function _getFileUrls ( $ baseUrl , $ basePath , $ param , stdClass $ package , & $ timestamp ) { $ timestamp = ( int ) $ timestamp ; $ filesToDisplay = array ( ) ; foreach ( $ package -> fileIncludes as $ singleFile ) { $ filename = $ basePath . $ singleFile -> path . $ singleFile -> text ; if ( DIRECTORY_SEPARATOR !== '/' ) { $ filename = str_replace ( '/' , DIRECTORY_SEPARATOR , $ filename ) ; } if ( ! is_file ( $ filename ) || ( $ fileTime = filemtime ( $ filename ) ) === false ) { throw new MW_Jsb2_Exception ( sprintf ( 'Unable to read filetime of file "%1$s"' , $ filename ) ) ; } $ timestamp = max ( $ timestamp , $ fileTime ) ; $ filesToDisplay [ ] = $ baseUrl . $ singleFile -> path . $ singleFile -> text . $ param . $ fileTime ; } return $ filesToDisplay ; }
Returns the file URLs of the given package object.

@param string $baseUrl URL the file location is relative to
@param string $basePath Absolute path to the base directory of the files
@param string $param Name and separator for the modification time parameter
@param stdClass $package Object with "fileIncludes" property containing a
list of file objects with "path" and "text" properties
@param integer &$timestamp Value/result parameter that will contain the latest file modification timestamp
@throws MW_Jsb2_Exception If the file modification timestamp couldn't be determined
Returns the file URLs of the given package object .