final class BulkRecordParser (View source)

Parses one CSV line of the bulk record form (name,type,content,prio,ttl[,disabled][,comment]) into a record.

Methods

array|string
parseLine(string $line, int|null $defaultTtl = null)

Parse a CSV line into a record array.

Details

array|string parseLine(string $line, int|null $defaultTtl = null)

Parse a CSV line into a record array.

Parameters

string $line
int|null $defaultTtl

Return Value

array|string

Error message on failure