[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/filters/ -> ReplaceTokens.php (sommaire)

(pas de description)

Poids: 415 lignes (13 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

ReplaceTokens:: (14 méthodes):
  replaceTokenCallback()
  read()
  setBeginToken()
  getBeginToken()
  setEndToken()
  getEndToken()
  createToken()
  createTokensource()
  setTokens()
  getTokens()
  setTokensources()
  getTokensources()
  chain()
  _initialize()

Token:: (4 méthodes):
  setKey()
  setValue()
  getKey()
  getValue()


Classe: ReplaceTokens  - X-Ref

replaceTokenCallback($matches)   X-Ref
Performs lookup on key and returns appropriate replacement string.

param: array $matches Array of 1 el containing key to search for.
return: string     Text with which to replace key or value of key if none is found.

read($len = null)   X-Ref
Returns stream with tokens having been replaced with appropriate values.
If a replacement value is not found for a token, the token is left in the stream.

return: mixed filtered stream, -1 on EOF.

setBeginToken($beginToken)   X-Ref
Sets the "begin token" character.

param: string $beginToken the character used to denote the beginning of a token.

getBeginToken()   X-Ref
Returns the "begin token" character.

return: string The character used to denote the beginning of a token.

setEndToken($endToken)   X-Ref
Sets the "end token" character.

param: string $endToken the character used to denote the end of a token

getEndToken()   X-Ref
Returns the "end token" character.

return: the character used to denote the beginning of a token

createToken()   X-Ref
Adds a token element to the map of tokens to replace.

return: object The token added to the map of replacements.

createTokensource()   X-Ref
Adds a token source to the sources of this filter.

return: object  A Reference to the source just added.

setTokens($tokens)   X-Ref
Sets the map of tokens to replace.
; used by ReplaceTokens::chain()

param: array A map (String->String) of token keys to replacement

getTokens()   X-Ref
Returns the map of tokens which will be replaced.
; used by ReplaceTokens::chain()

return: array A map (String->String) of token keys to replacement values.

setTokensources($sources)   X-Ref
Sets the tokensources to use; used by ReplaceTokens::chain()

param: array   An array of token sources.

getTokensources()   X-Ref
Returns the token sources used by this filter; used by ReplaceTokens::chain()

return: array

chain(Reader $reader)   X-Ref
Creates a new ReplaceTokens using the passed in
Reader for instantiation.

param: object A Reader object providing the underlying stream.
return: object A new filter based on this configuration, but filtering

_initialize()   X-Ref
Initializes tokens and loads the replacee-replacer hashtable.
This method is only called when this filter is used through
a <filterreader> tag in build file.


Classe: Token  - X-Ref

Holds a token.

setKey($key)   X-Ref
Sets the token key.

param: string $key The key for this token. Must not be <code>null</code>.

setValue($value)   X-Ref
Sets the token value.

param: string $value The value for this token. Must not be <code>null</code>.

getKey()   X-Ref
Returns the key for this token.

return: string The key for this token.

getValue()   X-Ref
Returns the value for this token.

return: string The value for this token.



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7