Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
ProjectConfig Class Reference

Public Member Functions

 __construct ( $extra)
 
 getLibraryPath ()
 
 getLibraryConfigByPackagename ( $packagename)
 

Protected Member Functions

 fetchVarFromConfigArray ( $array, $key, $default=null)
 
 applyDeprecatedRootConfigs ( $rootConfig)
 
 applyMagentoConfig ( $config)
 

Protected Attributes

 $libraryPath
 
 $libraryPackages
 

Detailed Description

Definition at line 12 of file ProjectConfig.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $extra)

Definition at line 17 of file ProjectConfig.php.

18  {
20  if( isset($extra['magento-project']) ){
21  $this->applyMagentoConfig($extra['magento-project']);
22  }
23  }
if( $_orders &&count( $_orders))( 'Orders') ?></caption >< thead >< tr >< th scopeforeach( $_orders as $_order)(__( 'Order #')) ?>" class $extra
Definition: history.phtml:32

Member Function Documentation

◆ applyDeprecatedRootConfigs()

applyDeprecatedRootConfigs (   $rootConfig)
protected

Definition at line 33 of file ProjectConfig.php.

34  {
35 
36  }

◆ applyMagentoConfig()

applyMagentoConfig (   $config)
protected

Definition at line 38 of file ProjectConfig.php.

39  {
40  $this->libraryPath = $this->fetchVarFromConfigArray( $config, 'libraryPath');
41  $this->libraryPackages = $this->fetchVarFromConfigArray( $config, 'libraries');
42 
43  }
$config
Definition: fraud_order.php:17
fetchVarFromConfigArray( $array, $key, $default=null)

◆ fetchVarFromConfigArray()

fetchVarFromConfigArray (   $array,
  $key,
  $default = null 
)
protected

Definition at line 25 of file ProjectConfig.php.

25  {
26  $result = $default;
27  if( isset($array[$key]) ){
28  $result = $array[$key];
29  }
30  return $result;
31  }

◆ getLibraryConfigByPackagename()

getLibraryConfigByPackagename (   $packagename)

Definition at line 50 of file ProjectConfig.php.

51  {
52  return $this->fetchVarFromConfigArray( $this->libraryPackages, $packagename );
53  }
fetchVarFromConfigArray( $array, $key, $default=null)

◆ getLibraryPath()

getLibraryPath ( )

Definition at line 45 of file ProjectConfig.php.

Field Documentation

◆ $libraryPackages

$libraryPackages
protected

Definition at line 15 of file ProjectConfig.php.

◆ $libraryPath

$libraryPath
protected

Definition at line 14 of file ProjectConfig.php.


The documentation for this class was generated from the following file: