classes/phing/types/Mapper.php

\Mapper

Filename Mapper maps source file name(s) to target file name(s).

Built-in mappers can be accessed by specifying they "type" attribute: Custom mappers can be specified by providing a dot-path to a include_path-relative class:

Extends from
\DataType
author
Hans Lellelid
package
phing.types
version
$Revision: 526 $

Properties

Propertyprotected  $classname= ''
Details
Type
Propertyprotected  $classpath= ''
Details
Type
Propertyprotected  $classpathId= ''
Details
Type
Propertyprotected  $from= ''
Details
Type
Propertyprotected  $to= ''
Details
Type
Propertyprotected  $type= ''
Details
Type

Methods

methodpublic  __construct(  $project ) :
Parameters
Name Type Description
$project
methodpublic  createClasspath( ) :
Create the classpath to be used when searching for component being defined
methodpublic  getImplementation( ) :
Factory, returns inmplementation of file name mapper as new instance
methodprivate  getRef( ) :
Performs the check for circular references and returns the referenced Mapper.
methodpublic  setClassname(  $classname ) :
Set the class name of the FileNameMapper to use.
Parameters
Name Type Description
$classname
methodpublic  setClasspath( \Path $classpath ) :
Set the classpath to be used when searching for component being defined
Parameters
Name Type Description
$classpath \Path An Path object containing the classpath.
methodpublic  setClasspathRef(  $r ) :
Reference to a classpath to use when loading the files.
Parameters
Name Type Description
$r
methodpublic  setFrom(  $from ) :
Set the argument to FileNameMapper.setFrom
Parameters
Name Type Description
$from
methodpublic  setRefid(  $r ) :
Make this Mapper instance a reference to another Mapper.

You must not set any other attribute if you make it a reference.

Parameters
Name Type Description
$r
methodpublic  setTo(  $to ) :
Set the argument to FileNameMapper.setTo
Parameters
Name Type Description
$to
methodpublic  setType(  $type ) :
Set the type of FileNameMapper to use.
Parameters
Name Type Description
$type
Documentation was generated by DocBlox 0.13.1.