Overview

Namespaces

  • PHP
  • XSLTBenchmarking
    • Reports
    • RunnerConsole
    • TestsGenerator
    • TestsRunner

Classes

  • EasyXmlGeneratorDriver
  • Generator
  • Params
  • SimpleTemplatingDriver
  • SmartyTemplatingDriver
  • SmartyXmlGeneratorDriver
  • Templating
  • Test
  • ToxgeneTemplatingDriver
  • ToxgeneXmlGeneratorDriver
  • XmlGenerator
  • XmlParamsDriver

Interfaces

  • IParamsDriver
  • ITemplatingDriver
  • IXmlGeneratorDriver
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class SmartyTemplatingDriver

Extend of Smarty for generating XSLT files from template.

Smarty
Extended by XSLTBenchmarking\TestsGenerator\SmartyTemplatingDriver implements XSLTBenchmarking\TestsGenerator\ITemplatingDriver

Direct Known Subclasses

XSLTBenchmarking\TestsGenerator\SmartyXmlGeneratorDriver
Namespace: XSLTBenchmarking\TestsGenerator
Author: Viktor Mašíček <viktor@masicek.net>
Located at TestsGenerator/Templating/SmartyTemplatingDriver.php
Methods summary
public
# __construct( string $tmpDirectory )
Object configuration

Object configuration

Parameters

$tmpDirectory
string
The path of the temporary directory

Implementation of

XSLTBenchmarking\TestsGenerator\ITemplatingDriver::__construct
public
# generate( string $templatePath, string $outputPath, array $settings )
Generate the template with specifis variable and save the content into the file

Generate the template with specifis variable and save the content into the file

Parameters

$templatePath
string
Path of template for generating
$outputPath
string
Path output file
$settings
array
Array of variables for template

Throws

XSLTBenchmarking\GenerateTemplateException
Problem with generating

Implementation of

XSLTBenchmarking\TestsGenerator\ITemplatingDriver::generate
public string
# repareIndent( string $content, boolean $indent )
Repare indent of output content, for better human reading.

Repare indent of output content, for better human reading.

Parameters

$content
string
Repared content
$indent
boolean
Flag, if we want indent of the content

Returns

string
public string
# pathEnd( string $path, integer $partsNumber = 1 )
Return last $parts parts of path.

Return last $parts parts of path.

Parameters

$path
string
Modified path
$partsNumber
integer
Number of last parts

Returns

string
public string
# timeNicer( string $time )
Return round time.

Return round time.

Parameters

$time
string
Modified time

Returns

string
public string
# memoryNicer( string $memory )
Return round memory with unit.

Return round memory with unit.

Parameters

$memory
string
Modified memory in bytes

Returns

string
XSTL Benchmarking API documentation generated by ApiGen.
Generated using the TokenReflection library.