src/CMDBLogbook.php
public function batchCreate($objectID, array $messages) {
        $requests = [];

        foreach ($messages as $message) {
            $requests[] = [
                'method' => 'cmdb.logbook.create',
                'params' => [
                    'object_id' => $objectID,
                    'message' => $message
                ]
            ];
        }

        $this->api->batchRequest($requests);

        return $this;
    }
public function batchCreate($objectID, array $messages) {
        $requests = [];

        foreach ($messages as $message) {
            $requests[] = [
                'method' => 'cmdb.logbook.create',
                'params' => [
                    'object_id' => $objectID,
                    'message' => $message
                ]
            ];
        }

        $this->api->batchRequest($requests);

        return $this;
    }
public function batchCreate ( $ objectID , array $ messages ) { $ requests = [ ] ; foreach ( $ messages as $ message ) { $ requests [ ] = [ 'method' => 'cmdb.logbook.create' , 'params' => [ 'object_id' => $ objectID , 'message' => $ message ] ] ; } $ this -> api -> batchRequest ( $ requests ) ; return $ this ; }
Create one or more logbook entries for a specific object

@param int $objectID Object identifier
@param array $messages List of messages as strings

@return self Returns itself

@throws Exception on error
Create one or more logbook entries for a specific object