__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
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