function m_conv($body, $param) { $c = new f_conv(); $c->monoDic("name", "複置換name"); $wk = new foo2(); $c->multiDic("list2", $wk); return $c->conv($body); }
break; } // $awk['TypeString'] = 'data_clump::' . $s; // $cols[] = $awk; } //var_dump($cols); //var_dump($pk); // $table_comment = $res->get_data('Comment'); $table_name = $res->get_data('Name'); $clump_name = $res->get_data('Name') . '_clump'; $clump_base_name = $res->get_data('Name') . '_clump_base'; // lib/clump/base/にpush_elementだけのbaseを組み上げる $conv = new f_conv(); $conv->monoDic('table_comment', $table_comment); $conv->monoDic('clump_base_name', $clump_base_name); $conv->monoDic('table_name', $table_name); // $conv->multiDic('recodes', new simple_loop($cols)); // $s = $conv->conv(file_get_contents($clump_base_template_fn)); file_put_contents($clump_base_dir . $clump_base_name . '.inc', $s); // lib/clumpに、ファイルがなければ、clumpファイルを作る $fn = $clump_dir . $clump_name . '.inc'; if (false === is_file($fn)) { // $conv->monoDic('clump_name', $clump_name); // $s = $conv->conv(file_get_contents($clump_template_fn));
<?php require_once 'make_calender.inc'; $c = new f_conv(); $ob = new make_calendar(); $ob->set_year(2006); $ob->set_month(6); $c->multiDic("loop", $ob); $template = '$$$loop$$$ <tr> <td>%%%d0%%% , %%%opt0%%% <td>%%%d1%%% , %%%opt1%%% <td>%%%d2%%% , %%%opt2%%% <td>%%%d3%%% , %%%opt3%%% <td>%%%d4%%% , %%%opt4%%% <td>%%%d5%%% , %%%opt5%%% <td>%%%d6%%% , %%%opt6%%% </tr> $$$/loop$$$'; print $template . "\n"; print $c->conv($template);