Render

Contains general uncategorized static methods mostly used by other Artaengine classes. To render data structures as displayable.
Source
Render.php
Implements
IRender
Since
1.0.0

Static Methods

dict2Html

string Render::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 Render::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 Render::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 Render::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 Render::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