本文整理汇总了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;
}
示例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;
}
示例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',
));
}
示例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);
}