The EIEntity object encapsulates an Eagle-I entity (EIEntity) object.

 Methods

__construct()

__construct($json_data) 

Parameters

$json_data

Sets the URI to null.

clear_uri() 

Gets the label (title) for this EIEntity.

getLabel() : string | null

Returns

stringnull

Returns the EIURI object for this EIEntity.

getURI() : \EIURI

Returns

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

Sets the label (title) for this EIEntity.

setLabel($label) 

Parameters

$label

Sets the EIURI object for the EIEntity.

setURI(\EIURI $uri) 

Parameters

$uri

\EIURI

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

 Properties

 

$label : string
access private
 

$uri : \EIURI
access private