Or:;
Mostra file Open project: vjousse/symfony-1.4 Class Usage Examples
Method | Description | |
---|---|---|
chain ( Reader $reader ) : object | Creates a new ReplaceTokens using the passed in Reader for instantiation. | |
createToken ( ) : object | Adds a token element to the map of tokens to replace. | |
createTokensource ( ) : object | Adds a token source to the sources of this filter. | |
getBeginToken ( ) : string | Returns the "begin token" character. | |
getEndToken ( ) : the | Returns the "end token" character. | |
getTokens ( ) : array | Returns the map of tokens which will be replaced. | |
getTokensources ( ) : array | Returns the token sources used by this filter; used by ReplaceTokens::chain() | |
read ( $len = null ) : mixed | Returns stream with tokens having been replaced with appropriate values. | |
setBeginToken ( string $beginToken ) | Sets the "begin token" character. | |
setEndToken ( string $endToken ) | Sets the "end token" character. | |
setTokens ( $tokens ) | Sets the map of tokens to replace. | |
setTokensources ( $sources ) | Sets the tokensources to use; used by ReplaceTokens::chain() |
Method | Description | |
---|---|---|
_initialize ( ) | Initializes tokens and loads the replacee-replacer hashtable. | |
replaceTokenCallback ( array $matches ) : string | Performs lookup on key and returns appropriate replacement string. |
public createToken ( ) : object | ||
return | object | The token added to the map of replacements.
Must not be null . |
public createTokensource ( ) : object | ||
return | object | A Reference to the source just added. |
public getBeginToken ( ) : string | ||
return | string | The character used to denote the beginning of a token. |
public getEndToken ( ) : the | ||
return | the | character used to denote the beginning of a token |
public getTokensources ( ) : array | ||
return | array |
public setBeginToken ( string $beginToken ) | ||
$beginToken | string | the character used to denote the beginning of a token. |
public setEndToken ( string $endToken ) | ||
$endToken | string | the character used to denote the end of a token |
public setTokensources ( $sources ) |