classes/phing/types/TokenSource.php

\TokenSource

A parameter is composed of a name, type and value.

Example of usage:

or:

<param type="tokensource>

Extends from
\DataType
author
Yannick Lecaillez
package
phing.types
version
$Revision: 526 $

Properties

Propertyprotectedstring  $classname= 'null'

String to hold the path to the TokenReader

Default valuenullDetails
Type
string
Propertyprotectedarray  $parameters= 'array'

Array holding parameters for the wrapped TokenReader.

Default valuearrayDetails
Type
array
Propertyprotected\TokenReader  $reader= ''

Reference to the TokenReader used by this TokenSource

Details
Type
\TokenReader
Propertyprotected  $tokens= 'array'

Array with key/value pairs of tokens

Default valuearrayDetails
Type

Methods

methodprivate  configureTokenReader( \TokenReader $reader ) :
Configures a TokenReader with the parameters passed to the TokenSource.
Parameters
Name Type Description
$reader \TokenReader
methodpublic  createParam( ) : \Parameter
Create nested tag.

Uses standard name/value Parameter class.

Returns
Type Description
\Parameter
methodpublic  getClassname( ) : string
Returns the qualified classname (dot-path) to use for handling token replacement.
Returns
Type Description
string
methodpublic  getTokens( ) :
This function uses the wrapper to read the tokens and then returns them.
Details
access
public
methodpublic  load( ) :
This method is called to load the sources from the reader into the buffer of the source.
methodpublic  setClassname( string $c ) :
Set the classname (dot-path) to use for handling token replacement.
Parameters
Name Type Description
$c string
Documentation was generated by DocBlox 0.13.1.