protected function configure() { parent::configure(); $this->name = 'join-member-to-community'; require sfConfig::get('sf_data_dir') . '/version.php'; $this->addOption('community', 'c', sfCommandOption::PARAMETER_REQUIRED, "Community Id", 1); }
protected function configure() { parent::configure(); $this->name = 'generate-diary'; require sfConfig::get('sf_data_dir') . '/version.php'; $this->addOptions(array(new sfCommandOption('number', null, sfCommandOption::PARAMETER_REQUIRED, 'Number of diaries', 5))); }
protected function configure() { parent::configure(); $this->name = 'send-message'; require sfConfig::get('sf_data_dir') . '/version.php'; $this->addOptions(array(new sfCommandOption('number', null, sfCommandOption::PARAMETER_REQUIRED, 'Number of send messages', 10))); }
protected function configure() { parent::configure(); $this->name = 'generate-community'; require sfConfig::get('sf_data_dir') . '/version.php'; $this->addOption('name-format', null, sfCommandOption::PARAMETER_REQUIRED, "Member's Name format", 'dummy%d'); $this->addOption('admin-member', 'a', sfCommandOption::PARAMETER_REQUIRED, "Admin member Id", 1); $this->addOption('category', 'c', sfCommandOption::PARAMETER_REQUIRED, "Category Id", 2); $this->addOption('number', null, sfCommandOption::PARAMETER_REQUIRED, 'Number of added members', 10); }
protected function configure() { parent::configure(); $this->name = 'generate-member'; $this->addOption('link', 'l', sfCommandOption::PARAMETER_REQUIRED, 'Who links?', null); $this->addOption('name-format', null, sfCommandOption::PARAMETER_REQUIRED, "Member's Name format", 'dummy%d'); $this->addOption('number', null, sfCommandOption::PARAMETER_REQUIRED, 'Number of added members', 10); $this->addOption('mail-address-format', null, sfCommandOption::PARAMETER_REQUIRED, 'Mail-Address format', '*****@*****.**'); $this->addOption('password-format', null, sfCommandOption::PARAMETER_REQUIRED, 'Password format', 'password'); }
protected function configure() { parent::configure(); $this->name = 'generate-all'; require sfConfig::get('sf_data_dir') . '/version.php'; $this->briefDescription = 'Generate Data for Test'; $this->detailedDescription = <<<EOF The [opKdt:generate-all|INFO] task generates useless data for testing. Call it with: [./symfony opKdt:generate-all|INFO] EOF; }