A utility trait for handling failed items.

  • experimental The experimental flag means that while we believe this method or class is ready for use, it may change before release in backwards- incompatible ways. Please use with caution, and test thoroughly when upgrading.
Trait
Methods
public handleFailure( $idNum, array $items)
 
Save the items to the failureFile. We silently abandon the items upon failures in this method because there's nothing we can do.

    Properties
    private $baseDir
     


    • var string Base directory for the failure files.
    private $failureFile
     


    • var string A filename to save the failed items.
    Methods
    private getFailedFiles()
     
    Get all the filenames for the failure files.

    • return array Filenames for all the failure files.
    private initFailureFile()
     
    Determine the failureFile.

    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only