src/CMDBObjectTypeCategories.php
public function batchReadByConst(array $objectTypeConsts) {
        $requests = [];

        foreach ($objectTypeConsts as $objectTypeConst) {
            $requests[] = [
                'method' => 'cmdb.object_type_categories.read',
                'params' => [
                    'type' => $objectTypeConst
                ]
            ];
        }

        return $this->api->batchRequest($requests);
    }
public function batchReadByConst(array $objectTypeConsts) {
        $requests = [];

        foreach ($objectTypeConsts as $objectTypeConst) {
            $requests[] = [
                'method' => 'cmdb.object_type_categories.read',
                'params' => [
                    'type' => $objectTypeConst
                ]
            ];
        }

        return $this->api->batchRequest($requests);
    }
public function batchReadByConst ( array $ objectTypeConsts ) { $ requests = [ ] ; foreach ( $ objectTypeConsts as $ objectTypeConst ) { $ requests [ ] = [ 'method' => 'cmdb.object_type_categories.read' , 'params' => [ 'type' => $ objectTypeConst ] ] ; } return $ this -> api -> batchRequest ( $ requests ) ; }
Fetches assigned categories for one or more objects types at once identified by their constants

@param array $objectTypeConsts List of object types constants as strings

@return array Result

@throws Exception on error
Fetches assigned categories for one or more objects types at once identified by their constants