Value object representing a view


package ArangoDBClient
since 3.4

 Methods

Constructs an empty view

__construct(array $name, string $type) 
since 3.4

Parameters

$name

array
  • name for view

$type

string
  • view type

Exceptions

\ArangoDBClient\ClientException

Return the view as an array

getAll() : array

Returns

array- view data as an array

Return the view id

getId() : string

Returns

string- view id

Return the view name

getName() : string

Returns

string- view name

Return the view type

getType() : string

Returns

string- view type

Set the view's id

setId(string $id) : void

Parameters

$id

string
  • view id

 Properties

 

The view id (might be NULL for new views)

$_id : string

Default

 

The view name

$_name : string

Default

 Constants

 

View id index

ENTRY_ID = 'id' 
 

View name index

ENTRY_NAME = 'name' 
 

View type index

ENTRY_TYPE = 'type'