Torro_Forms::dependencies_loaded()

Checks whether the dependencies have been loaded.

Description

See also

Return

(bool) True if the dependencies are loaded, false otherwise.

Source

File: src/torro-forms.php

	protected function dependencies_loaded() {
		if ( ! class_exists( 'PHPExcel' ) ) {
			return false;
		}

		if ( ! interface_exists( 'Psr\Log\LoggerInterface' ) ) {
			return false;
		}

		if ( ! function_exists( 'apiapi_manager' ) ) {
			return false;
		}

		if ( ! apiapi_manager()->transporters()->is_registered( 'wordpress' ) ) {
			return false;
		}

		if ( ! apiapi_manager()->storages()->is_registered( 'wordpress-option' ) ) {
			return false;
		}

		return true;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.