Completed
Push — work-fleets ( 4aef09...b4179a )
by SuperNova.WS
05:37
created

DBStaticSurvey   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 11
rs 10
c 1
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A db_survey_delete_by_id() 0 3 1
A db_survey_insert() 0 3 1
1
<?php
2
3
class DBStaticSurvey {
4
5
  public static function db_survey_delete_by_id($announce_id) {
6
    doquery("DELETE FROM {{survey}} WHERE `survey_announce_id` = {$announce_id};");
7
  }
8
9
  public static function db_survey_insert($announce_id, $survey_question, $survey_until) {
10
    doquery("INSERT INTO {{survey}} SET `survey_announce_id` = {$announce_id}, `survey_question` = '{$survey_question}', `survey_until` = '{$survey_until}'");
11
  }
12
13
}