1 | <?php |
||
24 | class OcrJobMapper extends Mapper { |
||
25 | |||
26 | /** |
||
27 | * OcrJobMapper constructor. |
||
28 | * |
||
29 | * @param IDBConnection $db |
||
30 | */ |
||
31 | 15 | public function __construct(IDBConnection $db) { |
|
34 | |||
35 | /** |
||
36 | * Find a specific job entity |
||
37 | * |
||
38 | * @param |
||
39 | * $id |
||
40 | * @return OcrJob |
||
41 | */ |
||
42 | 3 | public function find($id) { |
|
48 | |||
49 | /** |
||
50 | * Finds all user specific jobs entities |
||
51 | * |
||
52 | * @param |
||
53 | * $userId |
||
54 | * @return OcrJob[] |
||
55 | */ |
||
56 | 1 | public function findAll($userId) { |
|
62 | |||
63 | /** |
||
64 | * Finds all jobs PROCESSED entities for a given userid |
||
65 | * |
||
66 | * @param |
||
67 | * $userId |
||
68 | * @return OcrJob[] |
||
69 | */ |
||
70 | 1 | public function findAllProcessed($userId) { |
|
78 | |||
79 | /** |
||
80 | * Finds all jobs PENDING entities for a given userid. |
||
81 | * |
||
82 | * @param |
||
83 | * $userId |
||
84 | * @return OcrJob[] |
||
85 | */ |
||
86 | 1 | public function findAllPending($userId) { |
|
94 | |||
95 | /** |
||
96 | * Finds all jobs FAILED entities for a given userid, which were not displayed yet. |
||
97 | * |
||
98 | * @param |
||
99 | * $userId |
||
100 | * @return OcrJob[] |
||
101 | */ |
||
102 | 1 | public function findAllFailed($userId) { |
|
111 | |||
112 | /** |
||
113 | * Deletes all jobs for a given userid. |
||
114 | * (For example after user deletion) |
||
115 | * |
||
116 | * @param unknown $userId |
||
117 | * @return OcrJob[] |
||
118 | */ |
||
119 | 1 | public function deleteAllForUser($userId) { |
|
125 | } |