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
 1: <?php
 2: 
 3: /**
 4:  * XSLT Benchmarking
 5:  * @link https://github.com/masicek/XSLT-Benchmarking
 6:  * @author Viktor Mašíček <viktor@masicek.net>
 7:  * @license "New" BSD License
 8:  */
 9: 
10: namespace XSLTBenchmarking\TestsGenerator;
11: 
12: require_once LIBS . '/PhpPath/PhpPath.min.php';
13: require_once ROOT . '/TestsGenerator/XmlGenerator/ToxgeneXmlGeneratorDriver.php';
14: require_once __DIR__ . '/ITemplatingDriver.php';
15: require_once ROOT . '/Exceptions.php';
16: 
17: 
18: use PhpPath\P;
19: 
20: /**
21:  * Templating based on ToXGene.
22:  *
23:  * @author Viktor Mašíček <viktor@masicek.net>
24:  */
25: class ToxgeneTemplatingDriver extends ToxgeneXmlGeneratorDriver implements ITemplatingDriver
26: {
27: 
28: 
29:     /**
30:      * Object configuration
31:      *
32:      * @param string $tmpDirectory The path of the temporary directory
33:      */
34:     public function __construct($tmpDirectory)
35:     {
36:         parent::__construct($tmpDirectory);
37:     }
38: 
39: 
40:     /**
41:      * Copy input file into output file
42:      *
43:      * @param string $templatePath Path of file to copy
44:      * @param string $outputPath Path output file
45:      * @param array $settings Settings are not use in this driver
46:      *
47:      * @throws \XSLTBenchmarking\GenerateTemplateException Problem with generating
48:      * @return void
49:      */
50:     public function generate($templatePath, $outputPath, array $settings = array())
51:     {
52:         $pathinfo = pathinfo($templatePath);
53:         $templateDir = $pathinfo['dirname'];
54:         $settings['template'] = $pathinfo['basename'];
55:         parent::generate($outputPath, $templateDir, $settings);
56:     }
57: 
58: 
59: }
60: 
XSTL Benchmarking API documentation generated by ApiGen.
Generated using the TokenReflection library.