Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3/**
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; under version 2
7 * of the License (non-upgradable).
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 *
18 * Copyright (c) 2017 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT);
19 *
20 */
21
22namespace oat\oatbox\task\TaskInterface;
23
24use oat\oatbox\task\Task;
25use Zend\ServiceManager\ServiceLocatorAwareInterface;
26
27/**
28 * Interface TaskPersistenceInterface
29 * @package oat\oatbox\task\TaskInterface
30 *
31 * @deprecated since version 7.10.0, to be removed in 8.0. Use \oat\tao\model\taskQueue\QueueDispatcher instead.
32 */
33interface TaskPersistenceInterface extends ServiceLocatorAwareInterface
34{
35    /**
36     * @deprecated since version 7.10.0, to be removed in 8.0.
37     * @param $taskId
38     * @return Task
39     */
40    public function get($taskId);
41
42    /**
43     * @deprecated since version 7.10.0, to be removed in 8.0.
44     *
45     * @param Task $task
46     * @return boolean
47     */
48    public function add(Task $task);
49
50    /**
51     * @deprecated since version 7.10.0, to be removed in 8.0.
52     *
53     * @param array $filterTask
54     * @param null $rows
55     * @param null $page
56     * @param null $sortBy
57     * @param null $sortOrder
58     * @return array
59     */
60    public function search(array $filterTask, $rows = null, $page = null, $sortBy = null, $sortOrder = null);
61
62    /**
63     * @deprecated since version 7.10.0, to be removed in 8.0.
64     *
65     * @param $taskId
66     * @return boolean
67     */
68    public function has($taskId);
69
70    /**
71     * @deprecated since version 7.10.0, to be removed in 8.0.
72     *
73     * @param $taskId
74     * @param $status
75     * @return boolean
76     */
77    public function update($taskId, $status);
78
79    /**
80     * @deprecated since version 7.10.0, to be removed in 8.0.
81     *
82     * @param $taskId
83     * @param \common_report_Report $report
84     * @return boolean
85     */
86    public function setReport($taskId, \common_report_Report $report);
87
88    /**
89     * @deprecated since version 7.10.0, to be removed in 8.0.
90     *
91     * @param array $params
92     * @return int
93     */
94    public function count(array $params);
95
96    /**
97     * @deprecated since version 7.10.0, to be removed in 8.0.
98     *
99     * @return array
100     */
101    public function getAll();
102}