PHP Class Components_Helper_Templates_Single, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Inheritance: extends Components_Helper_Templates
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( string $sdir, string $tdir, string $sfile, string $tfile ) Constructor.
write ( array $parameters = [] ) : null Rewrite the template(s) from the source(s) to the target location(s).

Method Details

__construct() public method

Constructor.
public __construct ( string $sdir, string $tdir, string $sfile, string $tfile )
$sdir string The templates source directory.
$tdir string The templates target directory.
$sfile string The exact template source file.
$tfile string The exact template target file.

write() public method

Rewrite the template(s) from the source(s) to the target location(s).
public write ( array $parameters = [] ) : null
$parameters array The template(s) parameters.
return null