mappers/RegexpMapper.php

Show: inherited
Table of Contents

Uses regular expressions to perform filename transformations.

Author
Andreas Aderhold  
Author
Hans Lellelid  
Package
phing.mappers  
Version
$Id$  

\RegexpMapper

Package: phing\mappers

Uses regular expressions to perform filename transformations.

Parent(s)
\FileNameMapper
Author
Andreas Aderhold  
Author
Hans Lellelid  
Version
$Id$  

Properties

Propertyprivate\Regexp  $reg= ''

The Regexp engine.

Details
Type
\Regexp
Propertyprivatestring  $to= ''

Details
Type
string

Methods

methodpublic__construct( ) : void

methodpublicmain(  $sourceFileName ) : void

Parameters
Name Type Description
$sourceFileName
methodprivatereplaceReferences( string $source ) : void

Replace all backreferences in the to pattern with the matched groups.

groups of the source.

Parameters
Name Type Description
$source string

The source filename.

methodpublicsetFrom(  $from ) : void

Sets the "from" pattern. Required.

Parameters
Name Type Description
$from
methodpublicsetTo(  $to ) : void

Sets the "to" pattern. Required.

Parameters
Name Type Description
$to
Documentation was generated by DocBlox 0.18.1.