# mappers/GlobMapper.php

description here

Author
  Andreas Aderhold, andi@binarycloud.com
Package
  phing.mappers
Version
  $Revision: 526 $

## \GlobMapper
jump to top

Package: phing\mappers

description here

Implements
  \FileNameMapper
Author
  Andreas Aderhold, andi@binarycloud.com
Version
  $Revision: 526 $

### Properties

`$fromPostfix= 'null'`

Part of &quot;from&quot; pattern after the *.

Default value `null` Details

Type
  n/a

`$fromPrefix= 'null'`

Part of &quot;from&quot; pattern before the *.

Default value `null` Details

Type
  n/a

`$postfixLength= ''`

Length of the postfix (&quot;from&quot; pattern).

Details

Type
  n/a

`$prefixLength= ''`

Length of the prefix (&quot;from&quot; pattern).

Details

Type
  n/a

`$toPostfix= 'null'`

Part of &quot;to&quot; pattern after the *.

Default value `null` Details

Type
  n/a

`$toPrefix= 'null'`

Part of &quot;to&quot; pattern before the *.

Default value `null` Details

Type
  n/a

### Methods

`_extractVariablePart( $_name ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$_name |  |

`main( $_sourceFileName ) : array`

The mapper implementation.

Parameters

Name | Type | Description
--- | --- | ---
$_sourceFileName |  |

Returns

Type | Description
--- | ---
array | The data after the mapper has been applied; must be in array format (for some reason).

`setFrom( string $from ) : void`

Accessor. Sets the from property. What this mapper should recognize. The actual implementation is dependent upon the child class

Parameters

Name | Type | Description
--- | --- | ---
$from | string | On what this mapper should work

`setTo( string $to ) : void`

Sets the "to" pattern. Required.

Parameters

Name | Type | Description
--- | --- | ---
$to | string | To what this mapper should convert the from string

Documentation was generated by DocBlox 0.17.1.