Automator_DB_Handler::__construct()

Automator_DB_Handler constructor.


Source Source

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

	public function __construct() {
		$this->tables  = (object) apply_filters(
			'automator_database_tables',
			(object) array(
				'recipe'       => 'uap_recipe_log',
				'trigger'      => 'uap_trigger_log',
				'trigger_meta' => 'uap_trigger_log_meta',
				'action'       => 'uap_action_log',
				'action_meta'  => 'uap_action_log_meta',
				'closure'      => 'uap_closure_log',
				'closure_meta' => 'uap_closure_log_meta',
				'recipe_logs'  => 'uap_recipe_logs_view',
				'trigger_logs' => 'uap_trigger_logs_view',
				'action_logs'  => 'uap_action_logs_view',
			)
		);
		$this->recipe  = Automator_DB_Handler_Recipes::get_instance();
		$this->token   = Automator_DB_Handler_Tokens::get_instance();
		$this->trigger = Automator_DB_Handler_Triggers::get_instance();
		$this->action  = Automator_DB_Handler_Actions::get_instance();
		$this->closure = Automator_DB_Handler_Closures::get_instance();
	}