PHP 클래스 Wallabag\CoreBundle\Helper\EntriesExport

파일 보기 프로젝트 열기: wallabag/wallabag

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

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

exportAs() 공개 메소드

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

setEntries() 공개 메소드

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

updateTitle() 공개 메소드

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
리턴 EntriesExport