mappers/FlattenMapper.php
Removes any directory information from the passed path.
- Author
- Andreas Aderhold
- Package
- phing.mappers
- Version
- $Revision: 526 $
\FlattenMapper
Package: phing\mappers
Parameters
Returns
Parameters
Removes any directory information from the passed path.
- Implements
- \FileNameMapper
- Author
- Andreas Aderhold
- Version
- $Revision: 526 $
Methods

main(
string $sourceFileName
)
:
arrayThe mapper implementation. Returns string with source filename but without leading directory information
| Name | Type | Description |
|---|---|---|
| $sourceFileName | string | The data the mapper works on |
| Type | Description |
|---|---|
| array | The data after the mapper has been applied |

setFrom(
string $from
)
:
voidIgnored here.
| Name | Type | Description |
|---|---|---|
| $from | string | On what this mapper should work |