PHP Class Spatie\Crawler\CrawlQueue

Afficher le fichier Open project: spatie/crawler Class Usage Examples

Méthodes publiques

Свойство Type Description
$pending Illuminate\Support\Collection
$processed Illuminate\Support\Collection

Méthodes publiques

Méthode Description
__construct ( )
add ( CrawlUrl $url )
getPendingUrlAtIndex ( integer $index ) : CrawlUrl | null
getPendingUrls ( ) : Collection
has ( CrawlUrl | Url $crawlUrl ) : boolean
hasAlreadyBeenProcessed ( CrawlUrl $url )
hasPendingUrls ( ) : boolean
markAsProcessed ( CrawlUrl $crawlUrl )
removeProcessedUrlsFromPending ( )

Méthodes protégées

Méthode Description
contains ( Collection $collection, CrawlUrl $searchCrawlUrl ) : boolean

Method Details

__construct() public méthode

public __construct ( )

add() public méthode

public add ( CrawlUrl $url )
$url CrawlUrl

contains() protected méthode

protected contains ( Collection $collection, CrawlUrl $searchCrawlUrl ) : boolean
$collection Illuminate\Support\Collection
$searchCrawlUrl CrawlUrl
Résultat boolean

getPendingUrlAtIndex() public méthode

public getPendingUrlAtIndex ( integer $index ) : CrawlUrl | null
$index integer
Résultat CrawlUrl | null

getPendingUrls() public méthode

public getPendingUrls ( ) : Collection
Résultat Illuminate\Support\Collection

has() public méthode

public has ( CrawlUrl | Url $crawlUrl ) : boolean
$crawlUrl CrawlUrl | Url
Résultat boolean

hasAlreadyBeenProcessed() public méthode

public hasAlreadyBeenProcessed ( CrawlUrl $url )
$url CrawlUrl

hasPendingUrls() public méthode

public hasPendingUrls ( ) : boolean
Résultat boolean

markAsProcessed() public méthode

public markAsProcessed ( CrawlUrl $crawlUrl )
$crawlUrl CrawlUrl

removeProcessedUrlsFromPending() public méthode

Property Details

$pending public_oe property

public Collection,Illuminate\Support $pending
Résultat Illuminate\Support\Collection

$processed public_oe property

public Collection,Illuminate\Support $processed
Résultat Illuminate\Support\Collection