1 | <?php |
||
22 | class OcrStatusMapper extends Mapper { |
||
23 | |||
24 | /** |
||
25 | * OcrStatusMapper constructor. |
||
26 | * |
||
27 | * @param IDBConnection $db |
||
28 | */ |
||
29 | 2 | public function __construct(IDBConnection $db) { |
|
32 | |||
33 | /** |
||
34 | * Find a specific status entity |
||
35 | * |
||
36 | * @param $id |
||
37 | * @return \OCP\AppFramework\Db\Entity |
||
38 | */ |
||
39 | public function find($id) { |
||
43 | |||
44 | /** |
||
45 | * Finds all status PROCESSED entities for a given userid |
||
46 | * @param $userId |
||
47 | * @return array |
||
48 | */ |
||
49 | public function findAllProcessed($userId) { |
||
53 | |||
54 | /** |
||
55 | * Finds all status PENDING entities for a given userid |
||
56 | * @param $userId |
||
57 | * @return array |
||
58 | */ |
||
59 | public function findAllPending($userId) { |
||
63 | |||
64 | /** |
||
65 | * Finds all status FAILED entities for a given userid |
||
66 | * @param $userId |
||
67 | * @return array |
||
68 | */ |
||
69 | public function findAllFailed($userId) { |
||
73 | |||
74 | } |