1 | <?php |
||
23 | class OcrJobMapper extends Mapper { |
||
24 | |||
25 | /** |
||
26 | * OcrJobMapper constructor. |
||
27 | * |
||
28 | * @param IDBConnection $db |
||
29 | */ |
||
30 | 13 | public function __construct(IDBConnection $db) { |
|
33 | |||
34 | /** |
||
35 | * Find a specific job entity |
||
36 | * |
||
37 | * @param |
||
38 | * $id |
||
39 | * @return OcrJob |
||
40 | */ |
||
41 | 3 | public function find($id) { |
|
47 | |||
48 | /** |
||
49 | * Finds all user specific jobs entities |
||
50 | * |
||
51 | * @param |
||
52 | * $userId |
||
53 | * @return OcrJob[] |
||
54 | */ |
||
55 | 1 | public function findAll($userId) { |
|
61 | |||
62 | /** |
||
63 | * Finds all jobs PROCESSED entities for a given userid |
||
64 | * |
||
65 | * @param |
||
66 | * $userId |
||
67 | * @return OcrJob[] |
||
68 | */ |
||
69 | 1 | public function findAllProcessed($userId) { |
|
76 | |||
77 | /** |
||
78 | * Finds all jobs PENDING entities for a given userid. |
||
79 | * |
||
80 | * @param |
||
81 | * $userId |
||
82 | * @return OcrJob[] |
||
83 | */ |
||
84 | 1 | public function findAllPending($userId) { |
|
91 | |||
92 | /** |
||
93 | * Finds all jobs FAILED entities for a given userid, which were not displayed yet. |
||
94 | * |
||
95 | * @param |
||
96 | * $userId |
||
97 | * @return OcrJob[] |
||
98 | */ |
||
99 | 1 | public function findAllFailed($userId) { |
|
107 | } |