protected function save($data) { $model = new shopLangPluginFeatureModel(); foreach ($data as $lang => $dat) { foreach ($dat as $type => $da) { foreach ($da as $id => $value) { $model->insert(array('id' => $id, 'lang' => $lang, 'type' => $type, 'value' => $value), 1); } } } }