75 $PackageName =
'gui::context_set::common_state_startup::common_state_startup_utilities';
76 $this->StartupUtilities =
get_package( $PackageName ,
'last' , __FILE__ );
77 $this->DefaultControllers =
get_package(
'gui::context_set::default_controllers' ,
'last' , __FILE__ );
78 $this->DefaultViews =
get_package(
'gui::context_set::default_views' ,
'last' , __FILE__ );
80 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
81 $this->Trace =
get_package(
'trace' ,
'last' , __FILE__ );
115 $this->Prefix = $ContextSet->Prefix;
116 $this->DefaultControllers->set_constants( $ContextSet , $Options );
117 $this->DefaultViews->set_constants( $ContextSet , $Options );
119 catch( Exception $e )
155 $this->Trace->start_group(
"{lang:last_records_form_state}" );
159 if( intval( $Options->get_setting(
'last_records' , 0 ) ) )
161 $Result = $this->StartupUtilities->try_run_view_state( $ContextSet , $Options ,
'last_records' );
165 $this->StartupUtilities->trace_no_need_to_run_state_message(
166 'last_records_form' , $this->Prefix ,
''
170 $this->Trace->end_group();
173 catch( Exception $e )
209 $this->Trace->start_group(
"{lang:dependent_records_form_state}" );
213 if( intval( $Options->get_setting(
'dependent_records' , 0 ) ) )
215 $Result = $this->StartupUtilities->try_run_view_state(
216 $ContextSet , $Options ,
'dependent_records'
221 $this->StartupUtilities->trace_no_need_to_run_state_message(
222 'dependent_records_form' , $this->Prefix ,
''
226 $this->Trace->end_group();
229 catch( Exception $e )
261 private function run_it( &$Options , $State )
265 $HintedContext = $Options->get_setting(
'common_context' ,
false );
267 if( $HintedContext ===
false )
272 return( $HintedContext == $State );
274 catch( Exception $e )
318 catch( Exception $e )