function regenerateFiles() { $container = new PluginFieldsContainer(); $found_container = $container->find(); foreach ($found_container as $current_container) { $containers_id = $current_container['id']; $container->getFromDB($containers_id); $container->post_addItem(); } }