예제 #1
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);
     }
 }
예제 #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);
     }
 }