예제 #1
0
파일: storage.php 프로젝트: Nazg-Gul/gate
 function Destroy()
 {
     if ($this->RefCount() > 0) {
         return;
     }
     db_query('DELETE FROM `storage` WHERE `id`=' . $this->id);
     db_destroy_table('storage_volume_' . $this->id);
     rec_unlink($this->GetFullPath());
     manage_storage_unregister($this->id);
 }
예제 #2
0
파일: content.php 프로젝트: Nazg-Gul/gate
 function content_destroy_support_table($id, $dataset_id, $uid = -1)
 {
     if (db_count('content_support_tables', "`content_id`={$id} AND `dataset_id`={$dataset_id} AND `unique`={$uid}") == 0) {
         return;
     }
     $tname = 'content_support_' . $id . '_' . $dataset_id . ($uid != -1 ? "_{$uid}" : '');
     db_destroy_table($tname);
     db_delete('content_support_tables', "`content_id`={$id} AND `dataset_id`={$dataset_id} AND `unique`={$uid}");
 }
예제 #3
0
파일: 01CSCLog.php 프로젝트: Nazg-Gul/gate
 function PerformDeletion()
 {
     db_destroy_table('log');
 }