IRender

Interface for Artaengine Render class. This interface is to insures the class will always be backward compatible.
Source
IRender.php
Implementations
Render

Static Methods

dict2Html

string IRender::dict2Html(array data, string class=null)

Get an HTML from a dictionary array.

Arguments

    data (array)
    Dictionary to be rendered
    class=null (string)
    Value for
      class attribute

Returns

string
HTML

dict2String

string IRender::dict2String(array data, string glue=',, string punctuation=':)

Get a string from a dictionary array.

Arguments

    data (array)
    Dictionary to be rendered
    glue=', (string)
    ' Glue items using this string
    punctuation=': (string)
    ' Key/Value punctuation value

Returns

string
String

json2String

string IRender::json2String(string data, string glue=',, string punctuation=':)

Returns a string from a JSON.

Arguments

    data (string)
    JSON to be rendered
    glue=', (string)
    ' Glue items using this string
    punctuation=': (string)
    ' Key/Value punctuation value

Returns

string
String

list2Html

string IRender::list2Html(array data, string class=null)

Get an HTML from a list array.

Arguments

    data (array)
    Dictionary to be rendered
    class=null (string)
    Value for
      class attribute

Returns

string
HTML

list2String

string IRender::list2String(array data, string glue=',, string punctuation=':)

Returns a string from a list array.

Arguments

    data (array)
    List to be rendered
    glue=', (string)
    ' Glue items using this string
    punctuation=': (string)
    ' Key/Value punctuation value

Returns

string
String