Introduction (Previous) (Next) XML_sql2xml::add

Last updated: Sun, 16 May 2004

XML_sql2xml::XML_sql2xml

XML_sql2xml::XML_sql2xml -- Constructor

ïÐÉÓÁÎÉÅ

The Constructor can take a Pear::DB Data Source Name (DSN) and will then connect to the database; or a PEAR::DB object handle, if you already connected the database before. Providing sql-strings will not work.

If you provide only a DSN, you have to add a DB_result object, SQL statment or an array later.

The $root parameter is used, if you want to provide another name for your root-tag than <root>. If you give an empty string (""), there will be no root element created here, but only when you add a resultset, array or SQL Statment. And the first tag of this result is used as the root tag.

ðÁÒÁÍÅÔÒ

  • mixed $dsn - PEAR::DB "data source name" or DB_common object

  • string $root - the name of the XML-root element.

úÁÍÅÔËÁ

üÔÁ ÆÕÎËÃÉÑ ÍÏÖÅÔ ÂÙÔØ ×ÙÚ×ÁÎÁ ÓÔÁÔÉÞÅÓËÉ.

óÍ. ÔÁËÖÅ

XML_sql2xml::add()

Introduction (Previous) (Next) XML_sql2xml::add

Download Documentation Last updated: Sun, 16 May 2004
Hosting
HIVE: All information for read only. Please respect copyright!
Hosted by hive ÊÃÁ: Êèåâñêàÿ ãîðîäñêàÿ áèáëèîòåêà