3 namespace Wallabag\ImportBundle\Import
;
5 class FirefoxImport
extends BrowserImport
12 public function getName()
20 public function getUrl()
22 return 'import_firefox';
28 public function getDescription()
30 return 'import.firefox.description';
36 public function validateEntry(array $importedEntry)
38 if (empty($importedEntry['uri'])) {
48 protected function prepareEntry(array $entry = [])
51 'title' => $entry['title'],
53 'url' => $entry['uri'],
54 'is_archived' => (int) $this->markAsRead
,
55 'is_starred' => false,
57 'created_at' => substr($entry['dateAdded'], 0, 10),
60 if (array_key_exists('tags', $entry) && '' !== $entry['tags']) {
61 $data['tags'] = $entry['tags'];