mappers/RegexpMapper.php
\RegexpMapper
Package: phing\mappers
Parameters
Uses regular expressions to perform filename transformations.
- Implements
- \FileNameMapper
- Author
- Andreas Aderhold
- Author
- Hans Lellelid
- Version
- $Revision: 526 $
Properties
Methods

main(
mixed $sourceFileName
)
:
arrayThe mapper implementation.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $sourceFileName | mixed | The data the mapper works on. |
| Type | Description |
|---|---|
| array | The data after the mapper has been applied; must be in array format (for some reason). |

replaceReferences(
string $source
)
:
voidReplace all backreferences in the to pattern with the matched groups.
groups of the source.
| Name | Type | Description |
|---|---|---|
| $source | string | The source filename. |

setFrom(
string $from
)
:
voidSets the "from" pattern. Required.
Parameters
| Name | Type | Description |
|---|---|---|
| $from | string | On what this mapper should work |