PluginProbe
Depicter — Popup & Slider Builder / trunk
Depicter — Popup & Slider Builder vtrunk
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / app / src / Database / Entity / QueueJob.php

QueueJob.php in Depicter — Popup & Slider Builder trunk, at app/src/Database/Entity/QueueJob.php

43 lines 742 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Depicter\Database\Entity;
3
4 use Averta\WordPress\Database\Entity\Model;
5
6 class QueueJob extends Model
7 {
8 protected $idColumn = 'id';
9
10 /**
11 * Resource name.
12 *
13 * @var string
14 */
15 protected $resource = 'depicter_queue_jobs';
16
17 /**
18 * Determines what fields can be saved without be explicitly.
19 *
20 * @var array
21 */
22 protected $builtin = [
23 'attempts',
24 'reserved_at',
25 'available_at',
26 'created_at',
27 'status',
28 'last_error'
29 ];
30
31 protected $guard = [ 'id' ];
32
33 protected $format = [
34 'created_at' => 'currentDateTime',
35 'reserved_at' => 'currentDateTime',
36 'available_at' => 'currentDateTime',
37 ];
38
39 public function currentDateTime() {
40 return gmdate('Y-m-d H:i:s', time());
41 }
42 }
43