本文整理匯總了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);
}