CsvWriter
class CsvWriter (View source)
A Writer class for Express Entry objects
Properties
protected Writer | $writer | ||
protected Date | $dateFormatter | ||
private string | $datetime_format | ||
private Service|null | $siteService | ||
protected EntityManager | $entityManager |
Methods
__construct(Writer $writer, Date $dateFormatter, EntityManager $entityManager, $datetime_format = DATE_ATOM)
No description
array
orderedEntry(array $entry, array $headerKeys)
Return an entry in proper order
array
getSiteService()
Get the site service instance to use
void
Details
__construct(Writer $writer, Date $dateFormatter, EntityManager $entityManager, $datetime_format = DATE_ATOM)
No description
insertHeaders(Entity $entity)
No description
insertEntryList(EntryList $list)
Insert all data from the passed EntryList
private Generator
projectList(EntryList $list)
A generator that takes an EntryList and converts it to CSV rows
private array
orderedEntry(array $entry, array $headerKeys)
Return an entry in proper order
private array
projectEntry(Entry $entry)
Turn an Entry into an array
protected Service
getSiteService()
Get the site service instance to use
void
setSiteService(Service $siteService)
Override the site service