public static function import_model(string $zipfilepath) : \core_analytics\model {

        \core_analytics\manager::check_can_manage_models();

        $modelconfig = new \core_analytics\model_config();
        return $modelconfig->import($zipfilepath);
    }
public static function import_model(string $zipfilepath) : \core_analytics\model {

        \core_analytics\manager::check_can_manage_models();

        $modelconfig = new \core_analytics\model_config();
        return $modelconfig->import($zipfilepath);
    }
public static function import_model ( string $ zipfilepath ) : \ core_analytics \ model { \ core_analytics \ manager :: check_can_manage_models ( ) ; $ modelconfig = new \ core_analytics \ model_config ( ) ; return $ modelconfig -> import ( $ zipfilepath ) ; }
Imports the provided model.

Note that this method assumes that model_config::check_dependencies has already been called.

@throws \moodle_exception
@param  string $zipfilepath Zip file path
@return \core_analytics\model
Imports the provided model .