365. # Resolving is started in case of the current match.
366. foreach( $getReflectionParameters as $parameter )
367. {
368. # Class and variable names are obtained.
369. # [varname] for variable name.
370. # [vartype] for variable type.
371. preg_match
372. (
373. '/\s(?([A-Z]\w+(\\\\)*){1,})\s\$(?\w+)/' ,
374. ReflectionParameter::export([$page, $function], $parameter->name, true),
375. $match
376. );
377.
378. # If a valid class is found, the resolving continues.
379. if( isset($match['vartype']) )
380. {
381. # The name of the class instance is obtained.
382. $varname = $match['varname'];
383.
384. # Generated instances are being sent for use in views.