PHP Class Wallabag\ImportBundle\Import\BrowserImport

Inheritance: extends AbstractImport
显示文件 Open project: wallabag/wallabag

Protected Properties

Property Type Description
$filepath

Public Methods

Method Description
getDescription ( )
getName ( )
getUrl ( )
import ( )
parseEntry ( array $importedEntry )
setFilepath ( string $filepath ) Set file path to the json file.

Protected Methods

Method Description
parseEntries ( $entries ) Parse and insert all given entries.
parseEntriesForProducer ( array $entries ) Parse entries and send them to the queue.
setEntryAsRead ( array $importedEntry )

Method Details

getDescription() abstract public method

abstract public getDescription ( )

getName() abstract public method

abstract public getName ( )

getUrl() abstract public method

abstract public getUrl ( )

import() public method

public import ( )

parseEntries() protected method

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

parseEntriesForProducer() protected method

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 method

public parseEntry ( array $importedEntry )
$importedEntry array

setEntryAsRead() protected method

protected setEntryAsRead ( array $importedEntry )
$importedEntry array

setFilepath() public method

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

Property Details

$filepath protected_oe property

protected $filepath