src/CMDBObjects.php
public function readByIDs(array $objectIDs, $categories = false) {
        $params = [
            'filter' => [
                'ids' => $objectIDs
            ]
        ];

        if ($categories !== false) {
            $params['categories'] = $categories;
        }

        return $this->api->request(
            'cmdb.objects.read',
            $params
        );
    }
public function readByIDs(array $objectIDs, $categories = false) {
        $params = [
            'filter' => [
                'ids' => $objectIDs
            ]
        ];

        if ($categories !== false) {
            $params['categories'] = $categories;
        }

        return $this->api->request(
            'cmdb.objects.read',
            $params
        );
    }
public function readByIDs ( array $ objectIDs , $ categories = false ) { $ params = [ 'filter' => [ 'ids' => $ objectIDs ] ] ; if ( $ categories !== false ) { $ params [ 'categories' ] = $ categories ; } return $ this -> api -> request ( 'cmdb.objects.read' , $ params ) ; }
Fetch objects by their identifiers

@param array $objectIDs List of object identifiers as integers
@param bool|array $categories Also fetch category entries; add a list of category constants as array of strings
or true for all assigned categories, otherwise false for none; defaults to false

@return array Indexed array of associative arrays

@throws Exception on error
Fetch objects by their identifiers