Automator_DB_Handler_Recipes::mark_complete( int $recipe_log_id,  $completed )

Meaning of each number


Description Description

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


Top ↑

Parameters Parameters

$recipe_id

(int) (Required)

$recipe_log_id

(int) (Required)

$user_id

(int) (Required)

$complete

(int) (Required)

$run_number

(int) (Required)


Source Source

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

	public function mark_complete( int $recipe_log_id, int $completed ) {
		$this->update(
			array(
				'date_time' => current_time( 'mysql' ),
				'completed' => $completed,
			),
			array(
				'ID' => $recipe_log_id,
			),
			array(
				'%s',
				'%d',
				'%d',
			),
			array(
				'%d',
				'%d',
				'%d',
			)
		);
	}