Skip to content
Daniele Orlando edited this page Feb 20, 2016 · 10 revisions

APIs

Functions

function fluidxml($root?, array $options?);

function fluidify($file);

function fluidns($id, $uri, $mode?);

FluidXml interfaces

class FluidXml

::load($file);

::new($root?, array $options?);                     // Alias of __construct(), requires PHP 7.

__construct($root?, array $options?);

->namespace(...$namespace);

->namespaces();

->__invoke(...$query);
->query(...$query);

->add($child, ...$optionals);
->addChild($child, ...$optionals);

->prepend($sibling, ...$optionals);
->prependSibling($sibling, ...$optionals);

->append($sibling, ...$optionals);
->appendSibling($sibling, ...$optionals);

->attr(...$arguments);
->setAttribute(...$arguments);

->text($text);
->setText($text);

->addText($text);

->cdata($text);
->setCdata($text);

->addCdata($text);

->remove(...$query);

->size();
->length();

->array();

->dom();

->__toString();
->xml($strip = false);

->html($strip = false);

->save($file, $strip = false);

FluidNamespace interfaces

class FluidNamespace

__construct($id, $uri, $mode?);

->id();

->uri();

->mode();

->querify($xpath);

The complete API documentation can be generated executing:

./support/tools/gendoc      # Generated under 'documents/api/'.