コード例 #1
0
 /**
  * @param string $AppName
  * @param IRequest $request
  * @param LineMapper $mapper
  * @param string $UserId
  */
 public function __construct($AppName, IRequest $request, LineMapper $lineMapper, PointMapper $pointMapper, $UserId)
 {
     parent::__construct($AppName, $request);
     $this->lineMapper = $lineMapper;
     $this->pointMapper = $pointMapper;
     $this->userId = $UserId;
 }
コード例 #2
0
 public function __construct($appName, IRequest $request, IUserManager $userManager, IUserSession $userSession, ILogger $logger)
 {
     parent::__construct($appName, $request);
     $this->userManager = $userManager;
     $this->userSession = $userSession;
     $this->logger = $logger;
 }
コード例 #3
0
ファイル: recoverycontroller.php プロジェクト: samj1912/repo
 /**
  * @param string $AppName
  * @param IRequest $request
  * @param IConfig $config
  * @param IL10N $l10n
  * @param Recovery $recovery
  */
 public function __construct($AppName, IRequest $request, IConfig $config, IL10N $l10n, Recovery $recovery)
 {
     parent::__construct($AppName, $request);
     $this->config = $config;
     $this->l = $l10n;
     $this->recovery = $recovery;
 }
コード例 #4
0
ファイル: certificatecontroller.php プロジェクト: hyb148/core
 /**
  * @param string $appName
  * @param IRequest $request
  * @param ICertificateManager $certificateManager
  * @param IL10N $l10n
  * @param IAppManager $appManager
  */
 public function __construct($appName, IRequest $request, ICertificateManager $certificateManager, IL10N $l10n, IAppManager $appManager)
 {
     parent::__construct($appName, $request);
     $this->certificateManager = $certificateManager;
     $this->l10n = $l10n;
     $this->appManager = $appManager;
 }
コード例 #5
0
 /**
  * @NoAdminRequired
  *
  * @param string $AppName
  * @param IRequest $request
  * @param IL10N $l10n
  * @param View $view
  * @param ILogger $logger
  */
 public function __construct($AppName, IRequest $request, IL10N $l10n, View $view, ILogger $logger)
 {
     parent::__construct($AppName, $request);
     $this->l = $l10n;
     $this->view = $view;
     $this->logger = $logger;
 }
コード例 #6
0
ファイル: ControllerTest.php プロジェクト: Romua1d/core
 public function __construct($appName, $request)
 {
     parent::__construct($appName, $request);
     $this->registerResponder('tom', function ($respone) {
         return 'hi';
     });
 }
コード例 #7
0
 public function __construct($appName, IRequest $request, IConfig $settings, IL10N $l10n, $uid)
 {
     parent::__construct($appName, $request);
     $this->uid = $uid;
     $this->l10n = $l10n;
     $this->settings = $settings;
 }
コード例 #8
0
 public function __construct($AppName, IRequest $request, Config $config, ItemService $itemService, $configFile)
 {
     parent::__construct($AppName, $request);
     $this->config = $config;
     $this->configPath = $configFile;
     $this->itemService = $itemService;
 }
コード例 #9
0
ファイル: storagescontroller.php プロジェクト: vincchan/core
 /**
  * Creates a new storages controller.
  *
  * @param string $AppName application name
  * @param IRequest $request request object
  * @param IL10N $l10n l10n service
  * @param StoragesService $storagesService storage service
  * @param ILogger $logger
  */
 public function __construct($AppName, IRequest $request, IL10N $l10n, StoragesService $storagesService, ILogger $logger)
 {
     parent::__construct($AppName, $request);
     $this->l10n = $l10n;
     $this->service = $storagesService;
     $this->logger = $logger;
 }
コード例 #10
0
 public function __construct($appName, IRequest $request, $userId, CategoryMapper $mapper, BoardMapper $boardMapper)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->mapper = $mapper;
     $this->boardMapper = $boardMapper;
 }
コード例 #11
0
 public function __construct($AppName, IRequest $Request, $CurrentUID, IL10N $L10N)
 {
     parent::__construct($AppName, $Request);
     if (strcmp(Config::getSystemValue('dbtype'), 'pgsql') == 0) {
         $this->DbType = 1;
     }
     $this->CurrentUID = $CurrentUID;
     $Settings = new Settings();
     $Settings->SetKey('ProxyAddress');
     $this->ProxyAddress = $Settings->GetValue();
     $Settings->SetKey('ProxyPort');
     $this->ProxyPort = intval($Settings->GetValue());
     $Settings->SetKey('ProxyUser');
     $this->ProxyUser = $Settings->GetValue();
     $Settings->SetKey('ProxyPasswd');
     $this->ProxyPasswd = $Settings->GetValue();
     $Settings->SetKey('ProxyOnlyWithYTDL');
     $this->ProxyOnlyWithYTDL = $Settings->GetValue();
     $this->ProxyOnlyWithYTDL = is_null($this->ProxyOnlyWithYTDL) ? false : strcmp($this->ProxyOnlyWithYTDL, 'Y') == 0;
     $Settings->SetKey('WhichDownloader');
     $this->WhichDownloader = $Settings->GetValue();
     $this->WhichDownloader = is_null($this->WhichDownloader) ? 0 : (strcmp($this->WhichDownloader, 'ARIA2') == 0 ? 0 : 1);
     // 0 means ARIA2, 1 means CURL
     $Settings->SetTable('personal');
     $Settings->SetUID($this->CurrentUID);
     $Settings->SetKey('DownloadsFolder');
     $this->DownloadsFolder = $Settings->GetValue();
     $this->DownloadsFolder = '/' . (is_null($this->DownloadsFolder) ? 'Downloads' : $this->DownloadsFolder);
     $this->AbsoluteDownloadsFolder = \OC\Files\Filesystem::getLocalFolder($this->DownloadsFolder);
     $this->L10N = $L10N;
 }
コード例 #12
0
 /**
  * @param string $appName
  * @param \OCP\IRequest $request
  * @param $mailAccountMapper
  * @param $currentUserId
  */
 public function __construct($appName, IRequest $request, MailAccountMapper $mailAccountMapper, IURLGenerator $urlGenerator, $currentUserId)
 {
     parent::__construct($appName, $request);
     $this->mailAccountMapper = $mailAccountMapper;
     $this->urlGenerator = $urlGenerator;
     $this->currentUserId = $currentUserId;
 }
コード例 #13
0
 public function __construct($request, $appConfig, $accessObjectMapper, $groupManager)
 {
     parent::__construct('gatekeeper', $request);
     $this->appConfig = $appConfig;
     $this->accessObjectMapper = $accessObjectMapper;
     $this->groupManager = $groupManager;
 }
コード例 #14
0
 /**
  * constructor of the controller
  *
  * @param string $appName
  * @param IRequest $request
  * @param ILogger $logger
  * @param IUserSession $userSession
  * @param CurrentUserSettings $userSettings
  */
 public function __construct($appName, IRequest $request, ILogger $logger, IUserSession $userSession, CurrentUserSettings $userSettings)
 {
     parent::__construct($appName, $request);
     $this->logger = $logger;
     $this->user = $userSession->getUser();
     $this->userSettings = $userSettings;
 }
コード例 #15
0
 /**
  * @param string $appName
  * @param IRequest $request
  * @param bool $incomingShareEnabled
  * @param \OCA\Files_Sharing\External\Manager $externalManager
  * @param IClientService $clientService
  */
 public function __construct($appName, IRequest $request, $incomingShareEnabled, \OCA\Files_Sharing\External\Manager $externalManager, IClientService $clientService)
 {
     parent::__construct($appName, $request);
     $this->incomingShareEnabled = $incomingShareEnabled;
     $this->externalManager = $externalManager;
     $this->clientService = $clientService;
 }
コード例 #16
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;
 }
コード例 #17
0
 public function __construct($appName, IRequest $request, RecordService $service, Logger $logger, $userId)
 {
     parent::__construct($appName, $request);
     $this->service = $service;
     $this->logger = $logger;
     $this->userId = $userId;
 }
コード例 #18
0
 /**
  * @param string $AppName
  * @param IRequest $request
  * @param IURLGenerator $urlGenerator
  */
 public function __construct($AppName, IRootFolder $rootFolder, IRequest $request, IURLGenerator $urlGenerator, $userId)
 {
     parent::__construct($AppName, $request);
     $this->urlGenerator = $urlGenerator;
     $this->userId = $userId;
     $this->rootFolder = $rootFolder;
 }
コード例 #19
0
 public function __construct($appName, IRequest $request, $user, IL10N $l10n, WidgetSettingsService $widgetSettingsService)
 {
     parent::__construct($appName, $request);
     $this->user = $user;
     $this->L10N = $l10n;
     $this->widgetSettingsService = $widgetSettingsService;
 }
コード例 #20
0
ファイル: apicontroller.php プロジェクト: kenwi/core
 /**
  * constructor of the controller
  * @param string $appName the name of the app
  * @param IRequest $request an instance of the request
  * @param string $corsMethods comma seperated 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 7.0.0
  */
 public function __construct($appName, IRequest $request, $corsMethods = 'PUT, POST, GET, DELETE, PATCH', $corsAllowedHeaders = 'Authorization, Content-Type, Accept', $corsMaxAge = 1728000)
 {
     parent::__construct($appName, $request);
     $this->corsMethods = $corsMethods;
     $this->corsAllowedHeaders = $corsAllowedHeaders;
     $this->corsMaxAge = $corsMaxAge;
 }
コード例 #21
0
ファイル: pagecontroller.php プロジェクト: viki53/passman
 public function __construct($appName, IRequest $request, $userId, $ItemAPI, $appStorage)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->itemAPI = $ItemAPI;
     $this->appStorage = $appStorage;
 }
コード例 #22
0
ファイル: apicontroller.php プロジェクト: WilliamRen/ocsms
 public function __construct($appName, IRequest $request, $userId, SmsMapper $mapper, OcSmsApp $app)
 {
     parent::__construct($appName, $request);
     $this->app = $app;
     $this->userId = $userId;
     $this->smsMapper = $mapper;
 }
コード例 #23
0
 public function __construct($appName, IRequest $request, $userId, $l10n, IConfig $settings)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->l10n = $l10n;
     $this->configInfo = $settings;
 }
コード例 #24
0
 public function __construct($AppName, IRequest $request)
 {
     parent::__construct($AppName, $request);
     $ocConfig = \OC::$server->getConfig();
     $this->service = new PasswordPolicyService($ocConfig, 'passwordpolicy');
     $this->request = $request;
 }
コード例 #25
0
 /**
  * Constructor
  *
  * @param string $appName
  * @param IRequest $request
  * @param Environment $environment
  * @param IURLGenerator $urlGenerator
  * @param IConfig $appConfig
  */
 public function __construct($appName, IRequest $request, Environment $environment, IURLGenerator $urlGenerator, IConfig $appConfig)
 {
     parent::__construct($appName, $request);
     $this->environment = $environment;
     $this->urlGenerator = $urlGenerator;
     $this->appConfig = $appConfig;
 }
コード例 #26
0
ファイル: notescontroller.php プロジェクト: sbambach/notes
 /**
  * @param string $AppName
  * @param IRequest $request
  * @param NotesService $service
  * @param IConfig $settings
  * @param string $UserId
  */
 public function __construct($AppName, IRequest $request, NotesService $service, IConfig $settings, $UserId)
 {
     parent::__construct($AppName, $request);
     $this->notesService = $service;
     $this->settings = $settings;
     $this->userId = $UserId;
 }
コード例 #27
0
 public function __construct($appName, IRequest $request, IL10N $l10n, AppConfig $appConfig, $userId)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->l10n = $l10n;
     $this->appConfig = $appConfig;
 }
コード例 #28
0
 public function __construct($appName, IRequest $request, $userId, CacheManager $cacheManager, DeviceMapper $deviceMapper)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->cacheManager = $cacheManager;
     $this->deviceMapper = $deviceMapper;
 }
コード例 #29
0
 public function __construct($appName, IRequest $request, $userId, $urlgenerator, IDb $db)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->urlgenerator = $urlgenerator;
     $this->db = $db;
 }
コード例 #30
0
 /**
  * @NoAdminRequired
  *
  * @param string $AppName
  * @param IRequest $request
  * @param IL10N $l10n
  * @param View $view
  * @param ILogger $logger
  */
 public function __construct($AppName, IRequest $request, IL10N $l10n, ILogger $logger)
 {
     parent::__construct($AppName, $request);
     $this->l = $l10n;
     $this->logger = $logger;
     $this->request = $request;
 }