Documentation

Single extends Templates
in package

Components_Helper_Templates_Single:: converts a single template file into a target file.

Copyright 2011-2020 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
category

Horde

author

Gunnar Wrobel wrobel@pardus.de

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

$_source  : string|null
The source location.
$_target  : string
The target location.
__construct()  : mixed
Constructor.
write()  : void
Rewrite the template(s) from the source(s) to the target location(s).
writeSourceToTarget()  : void
Rewrite the template from the source to the target location.

Properties

$_source

The source location.

private string|null $_source = null

$_target read-only

The target location.

private string $_target

Methods

__construct()

Constructor.

public __construct(string $sdir, string $tdir, string $sfile, string $tfile) : mixed
Parameters
$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.

Return values
mixed

write()

Rewrite the template(s) from the source(s) to the target location(s).

public write([array<string|int, mixed> $parameters = [] ]) : void
Parameters
$parameters : array<string|int, mixed> = []

The template(s) parameters.

Return values
void

writeSourceToTarget()

Rewrite the template from the source to the target location.

protected writeSourceToTarget(string $source, string $target[, array<string|int, mixed> $parameters = [] ]) : void
Parameters
$source : string

The source location.

$target : string

The target location.

$parameters : array<string|int, mixed> = []

The template(s) parameters.

Return values
void

Search results