Structures_DataGrid_DataSource_XML
[ class tree: Structures_DataGrid_DataSource_XML ] [ index: Structures_DataGrid_DataSource_XML ] [ all elements ]

Class: Structures_DataGrid_DataSource_XML

Source Location: /Structures_DataGrid_DataSource_XML-0.2.1dev1/Structures/DataGrid/DataSource/XML.php

Class Overview

Structures_DataGrid_DataSource_Array
   |
   --Structures_DataGrid_DataSource_XML

XML DataSource driver


Author(s):

Version:

  • $Revision: 260315 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 78]
XML DataSource driver

This class is a DataSource driver for XML data. It accepts strings and filenames. An XPath expression can be specified to extract data rows from the given XML data.

SUPPORTED OPTIONS:

  • path: (string) XPath used to extract the data rows. The default is "*", which means all children of the context (root) node.
  • namespaces: (array) Pairs of prefix/uri to register for XPath processing
  • fieldAttribute: (string) Which attribute of the XML source should be used as column field name (only used if the XML source has attributes).
  • labelAttribute: (string) Which attribute of the XML source should be used as column label (only used if 'generate_columns' is true and the XML source has attributes).

  • Author: Mark Wiesemann <wiesemann@php.net>
  • Author: Olivier Guilyardi <olivier@samalyse.com>
  • Version: $Revision: 260315 $
  • Example: example not found
  • Example: example not found
  • Example: example not found


[ Top ]


Method Detail

Structures_DataGrid_DataSource_XML (Constructor)   [line 87]

Structures_DataGrid_DataSource_XML Structures_DataGrid_DataSource_XML( )

Constructor

[ Top ]

bind   [line 109]

mixed bind( string $xml, [array $options = array()])

Bind XML data
  • Return: true on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $xml   —  XML string or filename/stream
array   $options   —  Options as an associative array

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:40:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.