Datasource DynamicXMLDatasource

public class DynamicXMLDatasource extends Datasource

class.datasource.dynamic_xml.php #23

The DynamicXMLDatasource allows a user to retrieve XML from an URL. This datasource supports namespaces, partial results using XPath and caching the result for a number of minutes.

Methods

void __construct(array $env, bool $process_params)

Constructor for the datasource sets the parent, if $process_params is set, the $env variable will be run through Datasource::processParameters.

Parameters
  • $env arrayThe environment variables from the Frontend class which includes any params set by Symphony or Events or by other Datasources

  • $process_params boolIf set to true, Datasource::processParameters will be called. By default this is true

See Also
XMLElement execute(array $param_pool)

The meat of the Datasource, this function includes the datasource type's file that will preform the logic to return the data for this datasource It is passed the current parameters.

Parameters
  • $param_pool arrayThe current parameter pool that this Datasource can use when filtering and finding Entries or data.

Returns

The XMLElement to add into the XML for a page.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details