src/CMDBDialog.php
public function batchRead(array $attributes) {
        $requests = [];

        foreach ($attributes as $category => $mixed) {
            $attributes = [];

            if (is_array($mixed)) {
                $attributes = $mixed;
            } else {
                $attributes[] = $mixed;
            }

            foreach ($attributes as $attribute) {
                $requests[] = [
                    'method' => 'cmdb.dialog.read',
                    'params' => [
                        'category' => $category,
                        'property' => $attribute
                    ]
                ];
            }
        }

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

        foreach ($attributes as $category => $mixed) {
            $attributes = [];

            if (is_array($mixed)) {
                $attributes = $mixed;
            } else {
                $attributes[] = $mixed;
            }

            foreach ($attributes as $attribute) {
                $requests[] = [
                    'method' => 'cmdb.dialog.read',
                    'params' => [
                        'category' => $category,
                        'property' => $attribute
                    ]
                ];
            }
        }

        return $this->api->batchRequest($requests);
    }
public function batchRead ( array $ attributes ) { $ requests = [ ] ; foreach ( $ attributes as $ category => $ mixed ) { $ attributes = [ ] ; if ( is_array ( $ mixed ) ) { $ attributes = $ mixed ; } else { $ attributes [ ] = $ mixed ; } foreach ( $ attributes as $ attribute ) { $ requests [ ] = [ 'method' => 'cmdb.dialog.read' , 'params' => [ 'category' => $ category , 'property' => $ attribute ] ] ; } } return $ this -> api -> batchRequest ( $ requests ) ; }
Fetch values from one or more drop-down menus

@param array $attributes Attributes: ['cat' => 'attr', 'cat' => ['attr 1', 'attr 2']]

@return array Indexed array of associative arrays

@throws Exception on error
Fetch values from one or more drop - down menus