Comment 3 for bug 54226

Revision history for this message
wouter bolsterlee (wbolster) wrote :

  581 Wouter Bolsterlee 2007-08-07
      Implemented generic to_string() function

      The new global to_string() function renders various objects
      to a string. This function creates a string from various
      types of objects by applying various conversion methods.
      Supported data types:

      - Simple values: strings, integers, floats, boolean
        (0 or 1).
      - Any object implementing a render(), to_xhtml(),
        to_string() or toString() method.
      - Numerical arrays containing any of the supported types are
        recursively converted to string values, separated by
        newlines.

      An error is thrown if the passed object cannot be handled.

      Some test cases are included.

      This fixes bug #54226.