예제 #1
0
 function parse_template($string, &$bean_arr)
 {
     global $beanFiles, $beanList;
     foreach ($bean_arr as $bean_name => $bean_id) {
         require_once $beanFiles[$beanList[$bean_name]];
         $focus = new $beanList[$bean_name]();
         $focus->retrieve($bean_id);
         $string = TemplateParser::parse_template_bean($string, $bean_name, $focus);
     }
     return $string;
 }