PEAR Manual
Prev |  | Next

# XML_sql2xml::setOptions

XML_sql2xml::setOptions -- set options for the instance

## Synopsis

    require_once "XML/sql2xml.php";

``void XML_sql2xml::setOptions` (array $options [, constant $delete=`FALSE`])`

## Description

This method sets the options for the class instance.

## Parameter

- `array $options` - array of options. The array key defines the option to set. Avaible options are:

  - boolean `$options['nested']` - if `TRUE` the result of an join query will be nested. The default value is `FALSE`.

  - boolean `$options['tagNameRow']` - name for the row mark up tag. Default is >row<

  - boolean `$options['tagNameResult']` - name for the result-set mark up tag. Default is >result<

- `constant $delete` - the old sub options should be deleted

## Note

This function can not be called statically.

Prev | Home | Next
XML_sql2xml::getXMLObject | Up | XML_sql2xml::setEncoding