PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Util_Template

Source Location: /PHPUnit2-3.0.0alpha11/Util/Template.php

Class Overview




Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods


Class Details

[line 65]


[ Top ]


Method Detail

__construct (Constructor)   [line 92]

PHPUnit2_Util_Template __construct( [string $file = ''])

Constructor.
  • Throws: InvalidArgumentException
  • Access: public

Parameters:

string   $file   — 

[ Top ]

render   [line 139]

string render( )

Renders the template and returns the result.
  • Access: public

[ Top ]

renderTo   [line 149]

void renderTo( string $target)

Renders the template and writes the result to a file.
  • Access: public

Parameters:

string   $target   — 

[ Top ]

setFile   [line 103]

void setFile( string $file)

Sets the template file.
  • Throws: InvalidArgumentException
  • Access: public

Parameters:

string   $file   — 

[ Top ]

setVar   [line 120]

void setVar( mixed $keys, mixed $values)

Sets one or more template variables.
  • Access: public

Parameters:

mixed   $keys   — 
mixed   $values   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.