60 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
61 $this->ContextSetConfigs =
get_package(
'gui::context_set::context_set_configs' ,
'last' , __FILE__ );
62 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
92 private function get_package_data( &$Settings )
97 $PackageName = $Settings->get_setting(
'package_name' );
98 $PackageVersion = $Settings->get_setting(
'package_version' ,
'last' );
99 $Prefix = $this->ContextSetConfigs->get_context_set_prefix( $PackageName , $PackageVersion );
100 $Permits = $this->ContextSetConfigs->get_context_permits(
101 'create' , $PackageName , $PackageVersion
104 return( array( $Prefix , $Permits ) );
106 catch( Exception $e )
138 $Settings->set_setting(
'id' , md5( microtime(
true ) ) );
140 list( $Prefix , $Permits ) = $this->get_package_data( $Settings );
141 $Settings->set_setting(
'prefix' , $Prefix );
142 $Settings->set_setting(
'permits' , $Permits );
144 $Code = $this->CachedMultyFS->get_template( __FILE__ ,
'create_record.tpl' );
145 $Code = $this->String->print_record( $Code , $Settings->get_raw_settings() );
149 catch( Exception $e )