IPRangesCsvWriter
class IPRangesCsvWriter (View source)
Properties
protected Writer | $writer | The writer we use to output. |
|
protected int | $type | One of the IpAccessControlService::IPRANGETYPE_... constants. |
|
protected Date | $dateHelper | The date localization service. |
Methods
Insert a header row for this result set.
Insert a list of IPRange/IpAccessControlRange instances.
A generator that takes a collection of IPRange/IpAccessControlRange ranges and converts it to CSV rows.
Turn an IPRange/IpAccessControlRange instance into an array.
Get the headers of the CSV.
Details
__construct(Writer $writer, int $type, Date $dateHelper)
No description
insertHeaders()
Insert a header row for this result set.
insertRanges(IPRange[]|IpAccessControlRange[]|Generator $ranges)
Insert a list of IPRange/IpAccessControlRange instances.
insertRange(IPRange|IpAccessControlRange $range)
Insert an IPRange/IpAccessControlRange instance.
private array[]|Generator
projectRanges(IPRange[]|IpAccessControlRange[]|Generator $ranges)
A generator that takes a collection of IPRange/IpAccessControlRange ranges and converts it to CSV rows.
private string[]
projectRange(IPRange|IpAccessControlRange $range)
Turn an IPRange/IpAccessControlRange instance into an array.
private string[]
getHeaders()
Get the headers of the CSV.