function test_wpml_install()
 {
     if (is_callable('FrmProCopy::install')) {
         $copy = new FrmProCopy();
         $copy->install();
         $this->do_tables_exist(true);
     }
 }
Пример #2
0
 public static function delete_copy_rows($blog_id, $drop)
 {
     $blog_id = (int) $blog_id;
     if (!$drop or !$blog_id) {
         return;
     }
     $frmpro_copy = new FrmProCopy();
     $copies = $frmpro_copy->getAll("blog_id='{$blog_id}'");
     foreach ($copies as $copy) {
         $frmpro_copy->destroy($copy->id);
         unset($copy);
     }
 }
Пример #3
0
 function get_table_names()
 {
     global $wpdb;
     $tables = array($wpdb->prefix . 'frm_fields', $wpdb->prefix . 'frm_forms', $wpdb->prefix . 'frm_items', $wpdb->prefix . 'frm_item_metas');
     if (is_multisite() && is_callable('FrmProCopy::table_name')) {
         $tables[] = FrmProCopy::table_name();
     }
     return $tables;
 }
Пример #4
0
 public static function delete_copy_rows($blog_id, $drop)
 {
     $blog_id = (int) $blog_id;
     if (!$drop || !$blog_id) {
         return;
     }
     $copies = FrmProCopy::getAll(array('blog_id' => $blog_id));
     foreach ($copies as $copy) {
         FrmProCopy::destroy($copy->id);
         unset($copy);
     }
 }
 function test_wpml_install()
 {
     require FrmAppHelper::plugin_path() . '/pro/classes/models/FrmProCopy.php';
     $copy = new FrmProCopy();
     $copy->install();
 }