Horde_Pear_Package_Contents_Role_HordeComponent
in package
implements
Horde_Pear_Package_Contents_Role
Horde_Pear_Package_Contents_Role_HordeComponent:: handles file roles for Horde components.
Tags
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.