classes/Options.php
public static function loadArray(array $array,$prefix_path=null){
    $array = static::filterWith(["load.array", "load"], $array);
    if ($prefix_path){
      static::set($prefix_path,$array);
    } else {
      static::merge($array);
    }
    self::trigger('loaded');
  }
public static function loadArray(array $array,$prefix_path=null){
    $array = static::filterWith(["load.array", "load"], $array);
    if ($prefix_path){
      static::set($prefix_path,$array);
    } else {
      static::merge($array);
    }
    self::trigger('loaded');
  }
public static function loadArray ( array $ array , $ prefix_path = null ) { $ array = static :: filterWith ( [ "load.array" , "load" ] , $ array ) ; if ( $ prefix_path ) { static :: set ( $ prefix_path , $ array ) ; } else { static :: merge ( $ array ) ; } self :: trigger ( 'loaded' ) ; }
Load an array to the configuration
@param  array $array The array to load
@param  string $prefix_path You can insert/update the loaded array to a specific key path, if omitted it will be merged with the whole dictionary
Load an array to the configuration