PHP Class Wallabag\CoreBundle\Helper\EntriesExport

Show file Open project: wallabag/wallabag

Public Methods

Method Description
__construct ( string $wallabagUrl, string $logoPath )
exportAs ( string $format ) : Response Sets the output format.
setEntries ( array | Entry $entries ) : EntriesExport Define entries.
updateTitle ( string $method ) : EntriesExport Sets the category of which we want to get articles, or just one entry.

Private Methods

Method Description
getExportInformation ( string $type ) : string Return a kind of footer / information for the epub.
prepareSerializingContent ( string $format ) : JMS\Serializer Return a Serializer object for producing processes that need it (JSON & XML).
produceCsv ( ) : Response Inspired from CsvFileDumper.
produceEpub ( ) : Response Use PHPePub to dump a .epub file.
produceJson ( ) : Response Dump a JSON file.
produceMobi ( ) : Response Use PHPMobi to dump a .mobi file.
producePdf ( ) : Response Use TCPDF to dump a .pdf file.
produceTxt ( ) : Response Dump a TXT file.
produceXml ( ) : Response Dump a XML file.

Method Details

__construct() public method

public __construct ( string $wallabagUrl, string $logoPath )
$wallabagUrl string Wallabag instance url
$logoPath string Path to the logo FROM THE BUNDLE SCOPE

exportAs() public method

Sets the output format.
public exportAs ( string $format ) : Response
$format string
return Symfony\Component\HttpFoundation\Response

setEntries() public method

Define entries.
public setEntries ( array | Entry $entries ) : EntriesExport
$entries array | Entry An array of entries or one entry
return EntriesExport

updateTitle() public method

Sets the category of which we want to get articles, or just one entry.
public updateTitle ( string $method ) : EntriesExport
$method string Method to get articles
return EntriesExport