• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AppFramework\Controller类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中OCP\AppFramework\Controller的典型用法代码示例。如果您正苦于以下问题:PHP Controller类的具体用法?PHP Controller怎么用?PHP Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * @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;
 }
开发者ID:Aypac,项目名称:files_latexeditor,代码行数:16,代码来源:compilecontroller.php


示例2: __construct

 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;
 }
开发者ID:AARNet,项目名称:impersonate,代码行数:7,代码来源:settingscontroller.php


示例3: __construct

 /**
  * @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;
 }
开发者ID:samj1912,项目名称:repo,代码行数:14,代码来源:recoverycontroller.php


示例4: __construct

 /**
  * @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;
 }
开发者ID:hyb148,项目名称:core,代码行数:14,代码来源:certificatecontroller.php


示例5: __construct

 /**
  * @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;
 }
开发者ID:enoch85,项目名称:owncloud-testserver,代码行数:16,代码来源:filehandlingcontroller.php


示例6: __construct

 public function __construct($appName, IRequest $request, RecordService $service, Logger $logger, $userId)
 {
     parent::__construct($appName, $request);
     $this->service = $service;
     $this->logger = $logger;
     $this->userId = $userId;
 }
开发者ID:ChristophWurst,项目名称:fuel,代码行数:7,代码来源:recordscontroller.php


示例7: __construct

 public function __construct($appName, IRequest $request, IConfig $settings, IL10N $l10n, $uid)
 {
     parent::__construct($appName, $request);
     $this->uid = $uid;
     $this->l10n = $l10n;
     $this->settings = $settings;
 }
开发者ID:Ebimedia,项目名称:owncloud,代码行数:7,代码来源:documentcontroller.php


示例8: __construct

 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;
 }
开发者ID:samosito,项目名称:ocdownloader,代码行数:31,代码来源:ftpdownloader.php


示例9: __construct

 public function __construct($AppName, IRequest $request, Config $config, ItemService $itemService, $configFile)
 {
     parent::__construct($AppName, $request);
     $this->config = $config;
     $this->configPath = $configFile;
     $this->itemService = $itemService;
 }
开发者ID:rafalwojciechowski,项目名称:news,代码行数:7,代码来源:admincontroller.php


示例10: __construct

 /**
  * @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;
 }
开发者ID:matiasdelellis,项目名称:mail,代码行数:13,代码来源:pagecontroller.php


示例11: __construct

 public function __construct($appName, IRequest $request, $userId, CategoryMapper $mapper, BoardMapper $boardMapper)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->mapper = $mapper;
     $this->boardMapper = $boardMapper;
 }
开发者ID:nerzhul,项目名称:ownBoard,代码行数:7,代码来源:categorycontroller.php


示例12: __construct

 public function __construct($request, $appConfig, $accessObjectMapper, $groupManager)
 {
     parent::__construct('gatekeeper', $request);
     $this->appConfig = $appConfig;
     $this->accessObjectMapper = $accessObjectMapper;
     $this->groupManager = $groupManager;
 }
开发者ID:jeanaimar2,项目名称:gatekeeper,代码行数:7,代码来源:settingscontroller.php


示例13: __construct

 /**
  * 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;
 }
开发者ID:pigulla,项目名称:owncloud-sipgate,代码行数:16,代码来源:personalsettingscontroller.php


示例14: __construct

 /**
  * @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;
 }
开发者ID:ChristophWurst,项目名称:sketch,代码行数:13,代码来源:linecontroller.php


示例15: __construct

 public function __construct($appName, IRequest $request, $userId, CacheManager $cacheManager, DeviceMapper $deviceMapper)
 {
     parent::__construct($appName, $request);
     $this->userId = $userId;
     $this->cacheManager = $cacheManager;
     $this->deviceMapper = $deviceMapper;
 }
开发者ID:evaluation-alex,项目名称:maps,代码行数:7,代码来源:pagecontroller.php


示例16: __construct

 /**
  * 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;
 }
开发者ID:vincchan,项目名称:core,代码行数:16,代码来源:storagescontroller.php


示例17: __construct

 /**
  * @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;
 }
开发者ID:rosarion,项目名称:core,代码行数:14,代码来源:externalsharescontroller.php


示例18: __construct

 /**
  * 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;
 }
开发者ID:efueger,项目名称:galleryplus,代码行数:16,代码来源:configcontroller.php


示例19: __construct

 public function __construct($appName, IRequest $request, $user, IL10N $l10n, WidgetSettingsService $widgetSettingsService)
 {
     parent::__construct($appName, $request);
     $this->user = $user;
     $this->L10N = $l10n;
     $this->widgetSettingsService = $widgetSettingsService;
 }
开发者ID:arnovr,项目名称:dashboard,代码行数:7,代码来源:routewidgetsettingscontroller.php


示例20: __construct

 /**
  * @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;
 }
开发者ID:ynott,项目名称:libreonline-owncloud,代码行数:12,代码来源:apicontroller.php



注:本文中的OCP\AppFramework\Controller类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Http\TemplateResponse类代码示例发布时间:2022-05-23
下一篇:
PHP AppFramework\App类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap