Horde_Pear_Package_Contents_Role
in
Horde_Pear_Package_Contents_Role:: defines role handlers for package.xml filelists.
Tags
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.