PHP Class Wallabag\ImportBundle\Import\BrowserImport

Inheritance: extends AbstractImport
Afficher le fichier Open project: wallabag/wallabag

Protected Properties

Свойство Type Description
$filepath

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

abstract public getDescription ( )

getName() abstract public méthode

abstract public getName ( )

getUrl() abstract public méthode

abstract public getUrl ( )

import() public méthode

public import ( )

parseEntries() protected méthode

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

parseEntriesForProducer() protected méthode

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 méthode

public parseEntry ( array $importedEntry )
$importedEntry array

setEntryAsRead() protected méthode

protected setEntryAsRead ( array $importedEntry )
$importedEntry array

setFilepath() public méthode

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

Property Details

$filepath protected_oe property

protected $filepath