NobrainerWeb\Bilinfo\Tasks\GetSinceDaysDataTask
Synopsis
class GetSinceDaysDataTask
extends GetApiDataTask
{
- // members
- protected string $title = 'Bilinfo - Get data from the API with the ?sincedays param';
- private static integer $sincedays = 1;
- // methods
- protected array fetchData()
- // Inherited methods from GetApiDataTask
- public void run()
- protected array fetchData()
- protected void reportErrors()
- protected void cleanUp()
- public SS_List writeListings()
- protected Listing bindListingDealer()
- protected Listing bindListingMake()
- protected Listing bindListingImages()
- protected Listing bindListingEquipment()
- protected SS_List writeItems()
- protected DataObject writeItem()
- protected DataObject|null handleExistingItem()
- protected DataObject updateItem()
- protected string|null getUniqueIdentifier()
- protected void log()
Hierarchy
Members
private
- $sincedays
protected
- $errors
—
array
List of errors (strings) that might have occured - $title
- $title
Methods
protected
Inherited from NobrainerWeb\Bilinfo\Tasks\GetApiDataTask
protected
- bindListingDealer()
- bindListingEquipment()
- bindListingImages()
- bindListingMake()
- cleanUp() — cleanup existing data as it will be replaced ( has no external id so we cannot simply update it )
- fetchData()
- getUniqueIdentifier()
- handleExistingItem()
- log()
- reportErrors()
- updateItem()
- writeItem()
- writeItems() — Write list of items to DB,