Ejemplo n.º 1
0
	/**
	 * 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();
	}
Ejemplo n.º 2
0
	public function run() {
		parent::run();

		$this->import($this->getCsvFile());
	}
Ejemplo n.º 3
0
	/**
	 * 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();
	}