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

PHP Command\Base类代码示例

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

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



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

示例1: configure

	protected function configure() {
		parent::configure();

		$this
			->setName('config:system:set')
			->setDescription('Set a system config value')
			->addArgument(
				'name',
				InputArgument::REQUIRED,
				'Name of the config to set'
			)
			->addOption(
				'value',
				null,
				InputOption::VALUE_REQUIRED,
				'The new value of the config'
			)
			->addOption(
				'update-only',
				null,
				InputOption::VALUE_NONE,
				'Only updates the value, if it is not set before, it is not being added'
			)
		;
	}
开发者ID:ninjasilicon,项目名称:core,代码行数:25,代码来源:setconfig.php


示例2: configure

 protected function configure()
 {
     parent::configure();
     $this->setName('twofactorauth:enable');
     $this->setDescription('Enable two-factor authentication for a user');
     $this->addArgument('uid', InputArgument::REQUIRED);
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:7,代码来源:Enable.php


示例3: writeAppList

 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  * @param array $items
  */
 protected function writeAppList(InputInterface $input, OutputInterface $output, $items)
 {
     switch ($input->getOption('output')) {
         case self::OUTPUT_FORMAT_PLAIN:
             $output->writeln('Enabled:');
             parent::writeArrayInOutputFormat($input, $output, $items['enabled']);
             $output->writeln('Disabled:');
             parent::writeArrayInOutputFormat($input, $output, $items['disabled']);
             break;
         default:
             parent::writeArrayInOutputFormat($input, $output, $items);
             break;
     }
 }
开发者ID:enoch85,项目名称:owncloud-testserver,代码行数:19,代码来源:listapps.php


示例4: configure

	protected function configure() {
		parent::configure();

		$this
			->setName('config:system:delete')
			->setDescription('Delete a system config value')
			->addArgument(
				'name',
				InputArgument::REQUIRED,
				'Name of the config to delete'
			)
			->addOption(
				'error-if-not-exists',
				null,
				InputOption::VALUE_NONE,
				'Checks whether the config exists before deleting it'
			)
		;
	}
开发者ID:ninjasilicon,项目名称:core,代码行数:19,代码来源:deleteconfig.php


示例5: configure

	protected function configure() {
		parent::configure();

		$this
			->setName('config:list')
			->setDescription('List all configs')
			->addArgument(
				'app',
				InputArgument::OPTIONAL,
				'Name of the app ("system" to get the config.php values, "all" for all apps and system)',
				'all'
			)
			->addOption(
				'private',
				null,
				InputOption::VALUE_NONE,
				'Use this option when you want to include sensitive configs like passwords, salts, ...'
			)
		;
	}
开发者ID:ninjasilicon,项目名称:core,代码行数:20,代码来源:listconfigs.php


示例6: configure

 /**
  * {@inheritdoc }
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('integrity:check-app')->setDescription('Check an app integrity using a signature.')->addArgument('appid', null, InputArgument::REQUIRED, 'Application to check')->addOption('path', null, InputOption::VALUE_OPTIONAL, 'Path to application. If none is given it will be guessed.');
 }
开发者ID:ZverAleksey,项目名称:core,代码行数:8,代码来源:checkapp.php


示例7: configure

 protected function configure()
 {
     parent::configure();
     $this->setName('status')->setDescription('show some status information');
 }
开发者ID:gmurayama,项目名称:core,代码行数:5,代码来源:status.php


示例8: configure

 protected function configure()
 {
     parent::configure();
     $this->setName('app:getpath')->setDescription('Get an absolute path to the app directory')->addArgument('app', InputArgument::REQUIRED, 'Name of the app');
 }
开发者ID:kenwi,项目名称:core,代码行数:5,代码来源:getpath.php


示例9: configure

 protected function configure()
 {
     parent::configure();
     $this->setName('files:scan')->setDescription('rescan filesystem')->addArgument('user_id', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'will rescan all files of the given user(s)')->addOption('path', 'p', InputArgument::OPTIONAL, 'limit rescan to this path, eg. --path="/alice/files/Music", the user_id is determined by the path and the user_id parameter and --all are ignored')->addOption('quiet', 'q', InputOption::VALUE_NONE, 'suppress any output')->addOption('verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'verbose the output')->addOption('all', null, InputOption::VALUE_NONE, 'will rescan all files of all known users')->addOption('unscanned', null, InputOption::VALUE_NONE, 'only scan files which are marked as not fully scanned');
 }
开发者ID:GitHubUser4234,项目名称:core,代码行数:5,代码来源:Scan.php


示例10: configure

 protected function configure()
 {
     $this->setName('files_external:config')->setDescription('Manage backend configuration for a mount')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to edit')->addArgument('key', InputArgument::REQUIRED, 'key of the config option to set/get')->addArgument('value', InputArgument::OPTIONAL, 'value to set the config option to, when no value is provided the existing value will be printed');
     parent::configure();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:5,代码来源:Config.php


示例11: configure

 protected function configure()
 {
     $this->setName('files_external:verify')->setDescription('Verify mount configuration')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to check')->addOption('config', 'c', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Additional config option to set before checking in key=value pairs, required for certain auth backends such as login credentails');
     parent::configure();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:5,代码来源:Verify.php


示例12: configure

 protected function configure()
 {
     $this->setName('security:certificates')->setDescription('list trusted certificates');
     parent::configure();
 }
开发者ID:kenwi,项目名称:core,代码行数:5,代码来源:listcertificates.php


示例13: configure

 /**
  * {@inheritdoc }
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('integrity:check-core')->setDescription('Check a core integrity using a signature.');
 }
开发者ID:ZverAleksey,项目名称:core,代码行数:8,代码来源:checkcore.php


示例14: configure

 protected function configure()
 {
     parent::configure();
     $this->setName('config:system:get')->setDescription('Get a system config value')->addArgument('name', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'Name of the config to get, specify multiple for array parameter')->addOption('default-value', null, InputOption::VALUE_OPTIONAL, 'If no default value is set and the config does not exist, the command will exit with 1');
 }
开发者ID:GitHubUser4234,项目名称:core,代码行数:5,代码来源:GetConfig.php


示例15: configure

 protected function configure()
 {
     $this->setName('files_external:list')->setDescription('List configured mounts')->addArgument('user_id', InputArgument::OPTIONAL, 'user id to list the personal mounts for, if no user is provided admin mounts will be listed')->addOption('show-password', null, InputOption::VALUE_NONE, 'show passwords and secrets')->addOption('full', null, InputOption::VALUE_NONE, 'don\'t truncate long values in table output');
     parent::configure();
 }
开发者ID:kenwi,项目名称:core,代码行数:5,代码来源:listcommand.php


示例16: configure

 protected function configure()
 {
     $this->setName('files_external:applicable')->setDescription('Manage applicable users and groups for a mount')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to edit')->addOption('add-user', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'user to add as applicable')->addOption('remove-user', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'user to remove as applicable')->addOption('add-group', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'group to add as applicable')->addOption('remove-group', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'group to remove as applicable')->addOption('remove-all', null, InputOption::VALUE_NONE, 'Set the mount to be globally applicable');
     parent::configure();
 }
开发者ID:GitHubUser4234,项目名称:core,代码行数:5,代码来源:Applicable.php


示例17: configure

 protected function configure()
 {
     $this->setName('files_external:backends')->setDescription('Show available authentication and storage backends')->addArgument('type', InputArgument::OPTIONAL, 'only show backends of a certain type. Possible values are "authentication" or "storage"')->addArgument('backend', InputArgument::OPTIONAL, 'only show information of a specific backend');
     parent::configure();
 }
开发者ID:ZverAleksey,项目名称:core,代码行数:5,代码来源:backends.php


示例18: configure

 protected function configure()
 {
     $this->setName('files_external:import')->setDescription('Import mount configurations')->addOption('user', null, InputOption::VALUE_OPTIONAL, 'user to add the mount configurations for, if not set the mount will be added as system mount')->addArgument('path', InputArgument::REQUIRED, 'path to a json file containing the mounts to import, use "-" to read from stdin')->addOption('dry', null, InputOption::VALUE_NONE, 'Don\'t save the imported mounts, only list the new mounts');
     parent::configure();
 }
开发者ID:GitHubUser4234,项目名称:core,代码行数:5,代码来源:Import.php


示例19: configure

 protected function configure()
 {
     $this->setName('files_external:delete')->setDescription('Delete an external mount')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to edit')->addOption('yes', 'y', InputOption::VALUE_NONE, 'Skip confirmation');
     parent::configure();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:5,代码来源:Delete.php


示例20: configure

 protected function configure()
 {
     $this->setName('files_external:create')->setDescription('Create a new mount configuration')->addOption('user', null, InputOption::VALUE_OPTIONAL, 'user to add the mount configuration for, if not set the mount will be added as system mount')->addArgument('mount_point', InputArgument::REQUIRED, 'mount point for the new mount')->addArgument('storage_backend', InputArgument::REQUIRED, 'storage backend identifier for the new mount, see `occ files_external:backends` for possible values')->addArgument('authentication_backend', InputArgument::REQUIRED, 'authentication backend identifier for the new mount, see `occ files_external:backends` for possible values')->addOption('config', 'c', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Mount configuration option in key=value format')->addOption('dry', null, InputOption::VALUE_NONE, 'Don\'t save the created mount, only list the new mount');
     parent::configure();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:5,代码来源:Create.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP DB\Connection类代码示例发布时间:2022-05-23
下一篇:
PHP OAuth2\Server类代码示例发布时间: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