mirror of
https://github.com/wallabag/wallabag.git
synced 2024-09-25 21:10:00 +00:00
7019c7cf6c
- list services in /import - add url to import service - ImportBundle routing are now prefixed by /import - optimize flush in each import (flushing each 20 contents) - improve design of each import - add more tests
45 lines
782 B
PHP
45 lines
782 B
PHP
<?php
|
|
|
|
namespace Wallabag\ImportBundle\Import;
|
|
|
|
use Psr\Log\LoggerAwareInterface;
|
|
|
|
interface ImportInterface extends LoggerAwareInterface
|
|
{
|
|
/**
|
|
* Name of the import.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName();
|
|
|
|
/**
|
|
* Url to start the import.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getUrl();
|
|
|
|
/**
|
|
* Description of the import.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getDescription();
|
|
|
|
/**
|
|
* Import content using the user token.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function import();
|
|
|
|
/**
|
|
* Return an array with summary info about the import, with keys:
|
|
* - skipped
|
|
* - imported.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getSummary();
|
|
}
|