/** * Run an action basing on a command issued * @see Void_Scripts::run() */ public function run() { // Parse command line parent::run(); // Run an action basing on a command issued switch ($this->cli->command_name) { case 'get-version': $this->actionShowMigrationVersion(); break; case 'set-version': $this->actionSetMigrationVersion(); break; case 'migrate': $this->actionMigrate(); break; default: $this->parser->displayUsage(); } // Optionally, log all queries $this->logQueries(); }
public function run() { parent::run(); $this->import($this->getCsvFile()); }
/** * Run an action basing on a command issued * @see Void_Scripts::run() */ public function run() { // Parse command line parent::run(); // Run an action $this->changePassword(); }