Overview

Namespaces

  • Budovy
  • Kdyby
    • BootstrapFormRenderer
      • DI
      • Latte
  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • Nextras
    • Datagrid
  • None
  • PHP
  • Tester
    • CodeCoverage
    • Runner
      • Output
  • Vodacek
    • Forms
      • Controls
  • WebLoader
    • Filter
    • Nette

Classes

  • Compiler
  • DefaultOutputNamingConvention
  • FileCollection
  • LoaderFactory
  • Path

Interfaces

  • IFileCollection
  • IOutputNamingConvention

Exceptions

  • FileNotFoundException
  • InvalidArgumentException
  • WebLoaderException
  • Overview
  • Namespace
  • Class
  • Tree

Class Compiler

Compiler

Namespace: WebLoader
Author: Jan Marek
Located at vendor/others/WebLoader/Compiler.php
Methods summary
public
# __construct( WebLoader\IFileCollection $files, WebLoader\IOutputNamingConvention $convention, mixed $outputDir )
public static WebLoader\Compiler
# createCssCompiler( WebLoader\IFileCollection $files, string $outputDir )

Create compiler with predefined css output naming convention

Create compiler with predefined css output naming convention

Parameters

$files
WebLoader\IFileCollection
$files
$outputDir
string
$outputDir

Returns

WebLoader\Compiler
public static WebLoader\Compiler
# createJsCompiler( WebLoader\IFileCollection $files, string $outputDir )

Create compiler with predefined javascript output naming convention

Create compiler with predefined javascript output naming convention

Parameters

$files
WebLoader\IFileCollection
$files
$outputDir
string
$outputDir

Returns

WebLoader\Compiler
public string
# getOutputDir( )

Get temp path

Get temp path

Returns

string
public
# setOutputDir( string $tempPath )

Set temp path

Set temp path

Parameters

$tempPath
string
$tempPath
public boolean
# getJoinFiles( )

Get join files

Get join files

Returns

boolean
public
# setJoinFiles( boolean $joinFiles )

Set join files

Set join files

Parameters

$joinFiles
boolean
$joinFiles
public
# setCheckLastModified( boolean $checkLastModified )

Set check last modified

Set check last modified

Parameters

$checkLastModified
boolean
$checkLastModified
public integer
# getLastModified( array $files = null )

Get last modified timestamp of newest file

Get last modified timestamp of newest file

Parameters

$files
array
$files

Returns

integer
public string
# getContent( array $files = null )

Get joined content of all files

Get joined content of all files

Parameters

$files
array
$files

Returns

string
public array
# generate( boolean $ifModified = TRUE )

Load content and save file

Load content and save file

Parameters

$ifModified
boolean
$ifModified

Returns

array
filenames of generated files
protected
# generateFiles( array $files, mixed $ifModified )
protected string
# loadFile( string $file )

Load file

Load file

Parameters

$file
string
$file path

Returns

string
public WebLoader\IFileCollection
# getFileCollection( )

Returns

WebLoader\IFileCollection
public WebLoader\IOutputNamingConvention
# getOutputNamingConvention( )

Returns

WebLoader\IOutputNamingConvention
public
# setFileCollection( WebLoader\IFileCollection $collection )

Parameters

$collection
WebLoader\IFileCollection
$collection
public
# setOutputNamingConvention( WebLoader\IOutputNamingConvention $namingConvention )

Parameters

$namingConvention
WebLoader\IOutputNamingConvention
$namingConvention
public
# addFilter( callable $filter )

Parameters

$filter
callable
$filter

Throws

WebLoader\InvalidArgumentException
public array
# getFilters( )

Returns

array
public
# addFileFilter( callable $filter )

Parameters

$filter
callable
$filter

Throws

WebLoader\InvalidArgumentException
public array
# getFileFilters( )

Returns

array
API documentation generated by ApiGen 2.8.0