41 if( isset( $CachedFiles[ $FilePath ] ) ===
false )
43 $CachedFiles[ $FilePath ] = @file_get_contents( $FilePath );
46 return( $CachedFiles[ $FilePath ] );
65 $Handle = @opendir( $Path = rtrim( $Path ,
'/' ).
'/' );
66 if( $Handle !==
false )
68 for( ;
false !== ( $File = readdir( $Handle ) ) ; )
70 if( $File !=
"." and $File !=
".." )
72 $FullPath = $Path.$File;
73 if( is_dir( $FullPath ) )
115 return( $LoadedPackagesPaths );
117 catch( Exception $e )
150 if( is_object( $v ) || is_array( $v ) )
154 if(
in_array( $k , $_parsed_objects ) ===
false || is_numeric( $k ) )
156 $_parsed_objects[] = $k;
161 $Data = base64_encode(
' {X} ' );
192 if( $Params ===
false )
196 elseif( $Params ===
true )
233 foreach( $Params as $k => $v )
237 $_collapse_span_id += 1;
240 $PlaceHolders = array(
'{id}' ,
'{data}' ,
'{k}' );
242 $Template =
_file_get_contents( dirname( __FILE__ ).
'/../../res/templates/func_link.tpl' );
244 $Str .= str_replace( $PlaceHolders , array( $id , $Data , $k ) , $Template );
266 if( is_array( $Params ) && count( $Params ) == 0 )
271 if( is_array( $Params ) || is_object( $Params ) )
309 $ExceptionMessage = $ExceptionObject->getMessage();
311 return(
new Exception(
"$Method(".
_collapse_params( $Args ).
")::$ExceptionMessage" ) );
369 if( strpos( $Str , $Pattern ) !==
false )
371 return( substr_replace( $Str , $Replacement , strpos( $Str , $Pattern ) , strlen( $Pattern ) ) );