protected function withBulk(array $data = [])
    {
        if (!$this->isArray($data)) {
            return;
        }

        foreach ($data['data'] as $index => $element) {
            $row = $this->data->addChild('row');

            $row->addAttribute('no', ++$index);

            foreach ($element as $key => $value) {
                $child = $row->addChild('FL', $value);

                $child->addAttribute('val', $key);
            }
        }
    }
protected function withBulk(array $data = [])
    {
        if (!$this->isArray($data)) {
            return;
        }

        foreach ($data['data'] as $index => $element) {
            $row = $this->data->addChild('row');

            $row->addAttribute('no', ++$index);

            foreach ($element as $key => $value) {
                $child = $row->addChild('FL', $value);

                $child->addAttribute('val', $key);
            }
        }
    }
protected function withBulk ( array $ data = [ ] ) { if ( ! $ this -> isArray ( $ data ) ) { return ; } foreach ( $ data [ 'data' ] as $ index => $ element ) { $ row = $ this -> data -> addChild ( 'row' ) ; $ row -> addAttribute ( 'no' , ++ $ index ) ; foreach ( $ element as $ key => $ value ) { $ child = $ row -> addChild ( 'FL' , $ value ) ; $ child -> addAttribute ( 'val' , $ key ) ; } } }
One or more elements in data array.

@param array $data
One or more elements in data array .