\Dalenys_Api_Renderer_Html

Render a payment form in HTML

Summary

Methods
Properties
Constants
__construct()
render()
buildHiddenInputs()
buildHiddenInput()
buildSubmitInput()
setEncoding()
No public properties found
No constants found
buildAttributes()
escape()
$url
$encoding
$formPath
N/A
No private methods found
No private properties found
N/A

Properties

$url

$url : string

Type

string — The form action URL

$encoding

$encoding : string

Type

string — The form charset encoding

$formPath

$formPath : string

Type

string — The form action path

Methods

__construct()

__construct(string  $url) 

Instanciate

Parameters

string $url

The URL for payment form to submit

render()

render(array  $params, array  $options = array()) : string

Render the HTML form

Parameters

array $params

Transaction parameters

array $options

Transaction options

Returns

string —

The HTML

buildHiddenInputs()

buildHiddenInputs(array  $fields) : string

Render hidden inputs

Parameters

array $fields

The input list to validate

Returns

string —

The HTML

buildHiddenInput()

buildHiddenInput(  $key,   $value) : string

Render 1 hidden input

Parameters

$key

The input name

$value

The input value

Returns

string —

the HTML

buildSubmitInput()

buildSubmitInput(array  $options = array()) : string

Render the submit button

Parameters

array $options

The submit options

Returns

string —

The HTML

setEncoding()

setEncoding(  $encoding) 

Set form encoding

Parameters

$encoding

The encoding

buildAttributes()

buildAttributes(array  $options = array()) : string

Render HTML attributes

Parameters

array $options

The attributes to render

Returns

string —

The HTML

escape()

escape(string  $mixed) : string

Escape a variable against XSS

Parameters

string $mixed

The variable

Returns

string —

The escaped value