function m_conv($body, $param) { $c = new f_conv(); $c->monoDic("name", "複置換name"); $wk = new foo2(); $c->multiDic("list2", $wk); return $c->conv($body); }
} // $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)); file_put_contents($fn, $s);