PHP Class Whups_Form_Renderer_Comment, horde

See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsdl.php.
Inheritance: extends Horde_Form_Renderer
Mostra file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_tokens array Intermediate storage for links during comment formatting.

Public Methods

Method Description
begin ( $title )
end ( )
render ( $transaction, &$vars )

Protected Methods

Method Description
_autolink ( $matches )
_readTokens ( array $matches ) : string Replaces tokens with links stored earlier during _writeTokens() calls.
_writeTokens ( array $matches ) : string Replaces links with tokens and stores them for later _readTokens() calls.

Method Details

_readTokens() protected method

Replaces tokens with links stored earlier during _writeTokens() calls.
protected _readTokens ( array $matches ) : string
$matches array Match from preg_replace_callback().
return string The first available link.

_writeTokens() protected method

Replaces links with tokens and stores them for later _readTokens() calls.
protected _writeTokens ( array $matches ) : string
$matches array Match from preg_replace_callback().
return string NUL character.

begin() public method

public begin ( $title )

end() public method

public end ( )

render() public method

public render ( $transaction, &$vars )

Property Details

$_tokens protected_oe property

Intermediate storage for links during comment formatting.
protected array $_tokens
return array