PHP Class FluentDOM\Loader\Json\SimpleXML

Inheritance: implements FluentDOM\Loadable, use trait FluentDOM\Loader\Supports\Json
Datei anzeigen Open project: fluentdom/fluentdom

Public Methods

Method Description
getSupported ( ) : string[]
load ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : Document | Result | null Load the json string into an DOMDocument

Protected Methods

Method Description
transferChildTo ( DOMNode $node, string $name, mixed $data ) : array
transferTo ( DOMNode $node, mixed $json )

Method Details

getSupported() public method

public getSupported ( ) : string[]
return string[]

load() public method

Load the json string into an DOMDocument
public load ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : Document | Result | null
$source mixed
$contentType string
$options array | Traversable | Options
return FluentDOM\Document | FluentDOM\Loader\Result | null

transferChildTo() protected method

protected transferChildTo ( DOMNode $node, string $name, mixed $data ) : array
$node DOMNode
$name string
$data mixed
return array

transferTo() protected method

protected transferTo ( DOMNode $node, mixed $json )
$node DOMNode
$json mixed