public function __construct($AppName, IRequest $request, Updater $updater, IConfig $settings, StatusService $statusService)
 {
     parent::__construct($AppName, $request);
     $this->updater = $updater;
     $this->settings = $settings;
     $this->statusService = $statusService;
 }
예제 #2
0
 public function __construct($AppName, IRequest $request, ItemService $itemService, $UserId)
 {
     parent::__construct($AppName, $request);
     $this->itemService = $itemService;
     $this->userId = $UserId;
     $this->serializer = new EntityApiSerializer('items');
 }
 public function __construct($appName, IRequest $request, $userId, IDb $db)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->db = $db;
     $this->request = $request;
 }
 /**
  * @param string $appName
  * @param IRequest $request
  * @param UserList $userList
  */
 public function __construct($appName, IRequest $request, UserList $userList)
 {
     parent::__construct($appName, $request, 'GET', 'Authorization, Content-Type, Accept', 1728000);
     $this->appName = $appName;
     $this->request = $request;
     $this->userList = $userList;
 }
 public function __construct($appName, IRequest $request, IL10N $l, RequestMapper $requestMapper, $userId)
 {
     parent::__construct($appName, $request, 'GET, POST');
     $this->l = $l;
     $this->requestMapper = $requestMapper;
     $this->userId = $userId;
 }
예제 #6
0
 /**
  * Constructor
  *
  * @param string $appName
  * @param IRequest $request
  * @param ConfigService $configService
  * @param PreviewService $previewService
  * @param ILogger $logger
  */
 public function __construct($appName, IRequest $request, ConfigService $configService, PreviewService $previewService, ILogger $logger)
 {
     parent::__construct($appName, $request);
     $this->configService = $configService;
     $this->previewService = $previewService;
     $this->logger = $logger;
 }
예제 #7
0
 public function __construct($appName, IRequest $request, LocationMapper $locationMapper, DeviceMapper $deviceMapper, $userId)
 {
     parent::__construct($appName, $request);
     $this->locationMapper = $locationMapper;
     $this->deviceMapper = $deviceMapper;
     $this->userId = $userId;
 }
 /**
  * @param string $appName
  * @param IRequest $request
  * @param GetStorageHistory $getStorageHistory
  * @param GetActivityHistory $getActivityHistory
  */
 public function __construct($appName, IRequest $request, GetStorageHistory $getStorageHistory, GetActivityHistory $getActivityHistory)
 {
     parent::__construct($appName, $request, 'GET', 'Authorization, Content-Type, Accept', 1728000);
     $this->appName = $appName;
     $this->request = $request;
     $this->getStorageHistory = $getStorageHistory;
     $this->getActivityHistory = $getActivityHistory;
 }
예제 #9
0
 public function __construct($AppName, IRequest $request, FeedService $feedService, ItemService $itemService, ILogger $logger, $UserId, $LoggerParameters)
 {
     parent::__construct($AppName, $request);
     $this->feedService = $feedService;
     $this->itemService = $itemService;
     $this->userId = $UserId;
     $this->logger = $logger;
     $this->loggerParams = $LoggerParameters;
     $this->serializer = new EntityApiSerializer('feeds');
 }
예제 #10
0
 /**
  * Constructor
  *
  * @param string $appName
  * @param IRequest $request
  * @param IURLGenerator $urlGenerator
  * @param SearchFolderService $searchFolderService
  * @param ConfigService $configService
  * @param SearchMediaService $searchMediaService
  * @param DownloadService $downloadService
  * @param ILogger $logger
  */
 public function __construct($appName, IRequest $request, IURLGenerator $urlGenerator, SearchFolderService $searchFolderService, ConfigService $configService, SearchMediaService $searchMediaService, DownloadService $downloadService, ILogger $logger)
 {
     parent::__construct($appName, $request);
     $this->urlGenerator = $urlGenerator;
     $this->searchFolderService = $searchFolderService;
     $this->configService = $configService;
     $this->searchMediaService = $searchMediaService;
     $this->downloadService = $downloadService;
     $this->logger = $logger;
 }
예제 #11
0
 /**
  * constructor of the controller
  * @param string $appName the name of the app
  * @param IRequest $request an instance of the request
  * @param string $corsMethods comma separated string of HTTP verbs which
  * should be allowed for websites or webapps when calling your API, defaults to
  * 'PUT, POST, GET, DELETE, PATCH'
  * @param string $corsAllowedHeaders comma seperated string of HTTP headers
  * which should be allowed for websites or webapps when calling your API,
  * defaults to 'Authorization, Content-Type, Accept'
  * @param int $corsMaxAge number in seconds how long a preflighted OPTIONS
  * request should be cached, defaults to 1728000 seconds
  * @since 8.1.0
  */
 public function __construct($appName, IRequest $request, $corsMethods = 'PUT, POST, GET, DELETE, PATCH', $corsAllowedHeaders = 'Authorization, Content-Type, Accept', $corsMaxAge = 1728000)
 {
     parent::__construct($appName, $request, $corsMethods, $corsAllowedHeaders, $corsMaxAge);
     $this->registerResponder('json', function ($data) {
         return $this->buildOCSResponse('json', $data);
     });
     $this->registerResponder('xml', function ($data) {
         return $this->buildOCSResponse('xml', $data);
     });
 }
예제 #12
0
 /**
  * Constructor
  *
  * @param string $appName
  * @param IRequest $request
  * @param IURLGenerator $urlGenerator
  * @param ThumbnailService $thumbnailService
  * @param PreviewService $previewService
  * @param DownloadService $downloadService
  * @param EventSource $eventSource
  * @param ILogger $logger
  */
 public function __construct($appName, IRequest $request, IURLGenerator $urlGenerator, ThumbnailService $thumbnailService, PreviewService $previewService, DownloadService $downloadService, EventSource $eventSource, ILogger $logger)
 {
     parent::__construct($appName, $request);
     $this->urlGenerator = $urlGenerator;
     $this->thumbnailService = $thumbnailService;
     $this->previewService = $previewService;
     $this->downloadService = $downloadService;
     $this->eventSource = $eventSource;
     $this->logger = $logger;
 }
 /**
  * @param string $appName
  * @param IRequest $request
  * @param ChartService $chartService
  */
 public function __construct($appName, IRequest $request, ChartService $chartService)
 {
     $this->chartService = $chartService;
     parent::__construct(
         $appName,
         $request,
         'GET',
         'Authorization, Content-Type, Accept',
         1728000
     );
 }
 public function __construct($AppName, IRequest $request, SymLinkService $service, $UserId)
 {
     parent::__construct($AppName, $request);
     // Can add the following to the above constructor if you
     // want to force these options
     //'PUT, POST, GET, DELETE, PATCH',
     //'Authorization, Content-Type, Accept',
     //1728000
     $this->service = $service;
     $this->userId = $UserId;
     $this->AppName = $AppName;
 }
예제 #15
0
 public function __construct($appName, IRequest $request){
     parent::__construct($appName, $request);
 }
 /**
  * @param string $AppName
  * @param IRequest $request
  * @param StatisticService $service
  */
 public function __construct($AppName, IRequest $request, StatisticService $service)
 {
     parent::__construct($AppName, $request);
     $this->service = $service;
 }
예제 #17
0
 public function __construct($appName, IRequest $request, IDb $db, Manager $userManager)
 {
     parent::__construct($appName, $request);
     $this->db = $db;
     $this->userManager = $userManager;
 }
예제 #18
0
 public function __construct($AppName, IRequest $request, IUserSession $userSession, IRootFolder $rootFolder)
 {
     parent::__construct($AppName, $request);
     $this->userSession = $userSession;
     $this->rootFolder = $rootFolder;
 }
예제 #19
0
 public function __construct($appName, IRequest $request)
 {
     parent::__construct($appName, $request);
     $this->backend = new Backend();
 }
예제 #20
0
 /**
  * @param string $AppName
  * @param string $userId
  * @param IRequest $request
  */
 public function __construct($AppName, $userId, IRequest $request)
 {
     $this->user = $userId;
     parent::__construct($AppName, $request);
 }
예제 #21
0
 public function __construct($appName, IRequest $request, FavoriteMapper $favoriteMapper, $userId)
 {
     parent::__construct($appName, $request);
     $this->favoriteMapper = $favoriteMapper;
     $this->userId = $userId;
 }
예제 #22
0
 public function __construct($AppName, IRequest $request, FlightService $service, $UserId)
 {
     parent::__construct($AppName, $request);
     $this->service = $service;
     $this->userId = $UserId;
 }