当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Console_Getopt::__construct方法代码示例

本文整理汇总了PHP中Zend_Console_Getopt::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Console_Getopt::__construct方法的具体用法?PHP Zend_Console_Getopt::__construct怎么用?PHP Zend_Console_Getopt::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Console_Getopt的用法示例。


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

示例1: __construct

 /**
  * Override constructor to temporarily wait with defining rules.
  */
 public function __construct()
 {
     parent::__construct(array());
     // we always offer a help message
     $this->addOption('h|help', '', 'Show this help message');
     $this->addOption('q|quiet', '', 'Silences the output and logging');
     $this->configure();
     // by default we do _not_ make this parseable to allow tasks to be nested
     $this->_parsed = true;
 }
开发者ID:rhysr,项目名称:Docblox,代码行数:13,代码来源:Abstract.php

示例2: __construct

 /**
  * Override constructor to temporarily wait with defining rules.
  */
 public function __construct()
 {
     parent::__construct(array());
     // we always offer a help message
     $this->addOption('h|help', '', 'Show this help message');
     $this->addOption('q|quiet', '', 'Silences the output and logging');
     // we always offer a configuration option
     $this->addOption('c|config', '-s', 'Configuration filename OR "none", when this option is omitted DocBlox tries to load the docblox.xml or ' . 'docblox.dist.xml from the current working directory');
     $this->configure();
     // by default we do _not_ make this parseable to allow tasks to be nested
     $this->_parsed = true;
 }
开发者ID:rvanvelzen,项目名称:phpDocumentor2,代码行数:15,代码来源:Abstract.php

示例3: __construct

 /**
  * Initializes the object with all supported parameters.
  *
  * @return void
  */
 public function __construct()
 {
   parent::__construct(array(
     'h|help'         => 'Show this help message',
     'c|config-s'     => 'Configuration filename, if none is given the config.xml in the root of DocBlox is used',
     'f|filename=s'   => 'Comma-separated list of files to parse. The wildcards ? and * are supported',
     'd|directory=s'  => 'Comma-separated list of directories to (recursively) parse.',
     'e|extensions-s' => 'Optional comma-separated list of extensions to parse, defaults to php, php3 and phtml',
     't|target-s'     => 'Path where to store the generated output (optional, defaults to "output")',
     'v|verbose'      => 'Provides additional information during parsing, usually only needed for debuggin purposes',
     'i|ignore-s'     => 'Comma-separated list of file(s) and directories that will be ignored. Wildcards * and ? are supported',
     'm|markers-s'    => 'Comma-separated list of markers/tags to filter, (optional, defaults to: "TODO,FIXME")',
     'force'          => 'Forces a full build of the documentation, does not increment existing documentation',
     'validate'       => 'Validates every processed file using PHP Lint, costs a lot of performance',
   ));
 }
开发者ID:namesco,项目名称:Docblox,代码行数:21,代码来源:Arguments.php

示例4: __construct

 /**
  * Class Constructor
  * Set to protected so that class may only be instatiated via signleton
  * 
  * @param array $rules 
  */
 public function __construct(array $rules)
 {
     parent::__construct($rules);
 }
开发者ID:NicholasMiller,项目名称:ec2-manage-snapshots,代码行数:10,代码来源:Getopt.php


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