58 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
61 $this->
register_events( dirname( __FILE__ ).
'/conf/cf_event_manager_binded_events' );
99 function register_event( $Event , $PackageName , $PackageVersion , $Handler =
false )
103 if( isset( $this->LoadedBindings[ $Event ] ) ===
false )
105 $this->LoadedBindings[ $Event ] = array();
108 if( isset( $this->LoadedBindings[ $Event ][ $PackageName ] ) ===
false )
110 $this->LoadedBindings[ $Event ][ $PackageName ] = array();
113 if( isset( $this->LoadedBindings[ $Event ][ $PackageName ][ $PackageVersion ] ) ===
false )
115 $this->LoadedBindings[ $Event ][ $PackageName ][ $PackageVersion ] = array();
118 $this->LoadedBindings[ $Event ][ $PackageName ][ $PackageVersion ] [] = $Handler;
120 catch( Exception $e )
148 $Bindings = $this->CachedMultyFS->file_get_contents( $ConfigPath ,
'cleaned' );
150 if( $Bindings !=
'' )
152 $Bindings = explode(
"\n" , $Bindings );
154 foreach( $Bindings as $k => $v )
156 $this->Settings->load_settings( $v );
158 $this->Settings->get_setting(
'package_name' ) ,
159 $this->Settings->get_setting(
'package_version' ) ,
160 $this->Settings->get_setting(
'handler' ,
false ) );
164 catch( Exception $e )
200 if( isset( $this->LoadedBindings[ $Event ] ) )
202 foreach( $this->LoadedBindings[ $Event ] as $PackageName => $PackageVersions )
204 foreach( $PackageVersions as $PackageVersion => $FunctionNames )
206 foreach( $FunctionNames as $k => $FunctionName )
208 $Object =
get_package( $PackageName , $PackageVersion , __FILE__ );
209 $Return [] = call_user_func( array( $Object , $FunctionName ) , $Parameters );
217 catch( Exception $e )