Automator_DB_Handler_Recipes::mark_complete_with_error( int $recipe_id, int $recipe_log_id, int $complete )

Meaning of each number


Description Description

0 = not completed 1 = completed 2 = completed with errors, error message is provided 9 = completed, do nothing


Top ↑

Parameters Parameters

$recipe_id

(int) (Required)

$recipe_log_id

(int) (Required)

$complete

(int) (Required)


Source Source

File: src/core/lib/utilities/db/class-automator-db-handler-recipes.php

	public function mark_complete_with_error( int $recipe_id, int $recipe_log_id, int $complete ) {
		$this->update(
			array(
				'completed' => $complete,
			),
			array(
				'ID'                  => $recipe_log_id,
				'automator_recipe_id' => $recipe_id,
			),
			array(
				'%d',
			),
			array(
				'%d',
				'%d',
			)
		);
	}