PHP 클래스 Wallabag\ImportBundle\Import\BrowserImport

상속: extends AbstractImport
파일 보기 프로젝트 열기: wallabag/wallabag

보호된 프로퍼티들

프로퍼티 타입 설명
$filepath

공개 메소드들

메소드 설명
getDescription ( )
getName ( )
getUrl ( )
import ( )
parseEntry ( array $importedEntry )
setFilepath ( string $filepath ) Set file path to the json file.

보호된 메소드들

메소드 설명
parseEntries ( $entries ) Parse and insert all given entries.
parseEntriesForProducer ( array $entries ) Parse entries and send them to the queue.
setEntryAsRead ( array $importedEntry )

메소드 상세

getDescription() 추상적인 공개 메소드

abstract public getDescription ( )

getName() 추상적인 공개 메소드

abstract public getName ( )

getUrl() 추상적인 공개 메소드

abstract public getUrl ( )

import() 공개 메소드

public import ( )

parseEntries() 보호된 메소드

Parse and insert all given entries.
protected parseEntries ( $entries )
$entries

parseEntriesForProducer() 보호된 메소드

It should just be a simple loop on all item, no call to the database should be done to speedup queuing. Faster parse entries for Producer. We don't care to make check at this time. They'll be done by the consumer.
protected parseEntriesForProducer ( array $entries )
$entries array

parseEntry() 공개 메소드

public parseEntry ( array $importedEntry )
$importedEntry array

setEntryAsRead() 보호된 메소드

protected setEntryAsRead ( array $importedEntry )
$importedEntry array

setFilepath() 공개 메소드

Set file path to the json file.
public setFilepath ( string $filepath )
$filepath string

프로퍼티 상세

$filepath 보호되어 있는 프로퍼티

protected $filepath