PHP code example of upbase-package / jobtracking

1. Go to this page and download the library: Download upbase-package/jobtracking library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

upbase-package / jobtracking example snippets


\Upbase\Jobtracking\Models\JobTracking::createJobTracking('type', ['sme_id'=>0,
                                                                           'store_id'=>0,
                                                                           'total_job'=>0,
                                                                           'processed_job'=>0,
                                                                           'success_job'=>0,
                                                                           'failed_job'=>0])

\Upbase\Jobtracking\Models\JobTracking::incrementProcessedJob(1,true, true);

\Upbase\Jobtracking\Models\JobTracking::incrementSuccessProccesed(1);

\Upbase\Jobtracking\Models\JobTracking::incrementFailProccesed(1);