/** * 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; }
/** * 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; }
/** * 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', )); }
/** * 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); }