The EIModelVersion object encapsulates an ontology model/version request response.

This class is immutable, and can only be constructed from received JSON data from the Eagle-I API.

 Methods

__construct()

__construct($xml_data) 

Parameters

$xml_data

Get the version number for the currently loaded ontology (the loaded property).

getVersion() : string

Returns

string

Returns true if the object is null, otherwise returns false.

is_null() : bool

Returns

bool

Returns a serialized JSON representation of the object.

json_encode(bool $pretty) : string

Parameters

$pretty

bool

True if output with indentation is desired.

Returns

string

Used by json_encode to properly escape the JSON string.

json_escape($string) : string
Inherited
access protected
inherited_from \EIContainer::json_escape()

Parameters

$string

Returns

string

Used by json_encode($pretty = TRUE) to properly indent the JSON output.

json_indent($cols) : string
Inherited

Returns a serialized JSON representation of the object.

access protected
inherited_from \EIContainer::json_indent()

Parameters

$cols

Returns

string

Sets the properties as per the passed JSON data.

set($data) 
access private

Parameters

$data

Exceptions

\Exception If the JSON data cannot be used to populate the object.

 Properties

 

$availableJar 
 

$availableModel 
 

$loaded