DB::__construct( string $prefix, array $services, awsmug\Torro_Forms\Translations\Translations_DB $translations )

Constructor.

Description

This sets the table prefix and adds the tables.

See also

Parameters

$prefix

(string) (Required) The prefix for all database tables.

$services

(array) (Required) Array of service instances.

  • 'options'
    (Options) The Option API class instance.
  • 'error_handler'
    (Error_Handler) The error handler instance.

$translations

(awsmug\Torro_Forms\Translations\Translations_DB) (Required) Translations instance.

Source

File: src/db.php

	public function __construct( $prefix, $services, $translations ) {
		parent::__construct( $prefix, $services, $translations );

		$this->options()->store_in_network( 'rewrite_rules' );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.