committed by
Julius Härtl
parent
cba260fefd
commit
3c5f68e0c3
@@ -25,6 +25,7 @@ namespace OCA\Deck\Controller;
|
||||
|
||||
use OCA\Deck\Service\AssignmentService;
|
||||
use OCA\Deck\Service\CardService;
|
||||
use OCA\Deck\Service\DashboardService;
|
||||
use OCP\IRequest;
|
||||
use OCP\AppFramework\Controller;
|
||||
|
||||
@@ -33,10 +34,11 @@ class CardController extends Controller {
|
||||
private $cardService;
|
||||
private $assignmentService;
|
||||
|
||||
public function __construct($appName, IRequest $request, CardService $cardService, AssignmentService $assignmentService, $userId) {
|
||||
public function __construct($appName, IRequest $request, CardService $cardService, DashboardService $dashboardService, AssignmentService $assignmentService, $userId) {
|
||||
parent::__construct($appName, $request);
|
||||
$this->userId = $userId;
|
||||
$this->cardService = $cardService;
|
||||
$this->dashboardService = $dashboardService;
|
||||
$this->assignmentService = $assignmentService;
|
||||
}
|
||||
|
||||
@@ -165,4 +167,20 @@ class CardController extends Controller {
|
||||
public function unassignUser($cardId, $userId, $type = 0) {
|
||||
return $this->assignmentService->unassignUser($cardId, $userId, $type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @return array
|
||||
*/
|
||||
public function findAllWithDue($userId) {
|
||||
return $this->dashboardService->findAllWithDue($userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @return array
|
||||
*/
|
||||
public function findMyAssignedCards($userId) {
|
||||
return $this->dashboardService->findMyAssignedCards($userId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user