\iTopApiITopObject

Util class to acces iTop object oriented Class ITopObject

Summary

Methods
Properties
Constants
__construct()
save()
delete()
isDirty()
__get()
__set()
getITopClient()
getKey()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$dirty_
$key_
$class_
$iTopClient_
$data_
N/A

Properties

$dirty_

$dirty_ : boolean

Type

boolean — Was the oject updated or not

$key_

$key_ : integer

Type

integer — This is not an ssh one

$class_

$class_ : string

Type

string — Current class

$iTopClient_

$iTopClient_ : \iTopApi\ITopClient

Type

\iTopApi\ITopClient — Current iTopClient

$data_

$data_ : array

Type

array — Data about the current object

Methods

__construct()

__construct(string  $class,   $key, array  $data, \iTopApi\iTopClient  $iTopClient) 

Instantiate a new ITopObject

Parameters

string $class

Class for the current object

$key
array $data

Data for the current object (content of 'fields')

\iTopApi\iTopClient $iTopClient

save()

save(string  $comment = null) : mixed

Update/Create the current object in iTop Database

Parameters

string $comment

Comment to record in iTop

Returns

mixed

delete()

delete(string  $comment = null) : mixed

Delete the current object from the database and mark is a new

Parameters

string $comment

Comment to save in iTop

Returns

mixed

isDirty()

isDirty() : boolean

Returns

boolean —

Is dirty or not

__get()

__get(string  $variable) : mixed

Parameters

string $variable

Returns

mixed

__set()

__set(string  $variable, mixed  $value) 

Parameters

string $variable
mixed $value

getITopClient()

getITopClient() : \iTopApi\ITopClient

Get the current ITopClient

Returns

\iTopApi\ITopClient

getKey()

getKey() : integer

Get current key id from iTop object

Returns

integer —

Current object ID in iTop db