Documentation

Directory extends Templates
in package

Components_Helper_Templates_Directory:: converts template files from a directory into files in a target directory.

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  : mixed
__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

Methods

__construct()

Constructor.

public __construct(string $sdir, string $_target) : mixed
Parameters
$sdir : string

The templates source directory.

$_target : string

The templates target directory.

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