Documentation

Horde_Pear_Package_Contents_Role_HordeApplication
in package
implements Horde_Pear_Package_Contents_Role

Horde_Pear_Package_Contents_Role_HordeApplication:: handles file roles for Horde applications.

Tags
author

Gunnar Wrobel wrobel@pardus.de

category

Horde

copyright

2011-2017 Horde LLC

license

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

Interfaces, Classes and Traits

Horde_Pear_Package_Contents_Role
Horde_Pear_Package_Contents_Role:: defines role handlers for package.xml filelists.

Table of Contents

getReplace()  : array<string|int, mixed>
Tell which replacement tasks are required for the specified file.
getRole()  : string
Tell which role the specified file has.

Methods

getReplace()

Tell which replacement tasks are required for the specified file.

public getReplace(string $file, string $root) : array<string|int, mixed>
Parameters
$file : string

The file path inside the component.

$root : string

The filesystem root of the component.

Return values
array<string|int, mixed>

A list of tasks:replace attribute hashes.

getRole()

Tell which role the specified file has.

public getRole(string $file) : string
Parameters
$file : string

The file name.

Return values
string

The role of the file.

Search results