query() public method

public query ( )
Beispiel #1
0
     break;
 case validateRoute('POST', 'rules'):
     $rules = new Rules($db, $user);
     httpResponse($rules->create($postdata));
     break;
 case validateRoute('PATCH', 'rules/\\d+'):
     $rules = new Rules($db, $user);
     httpResponse($rules->update($params[1], $postdata));
     break;
 case validateRoute('DELETE', 'rules/\\d+'):
     $rules = new Rules($db, $user);
     httpResponse($rules->delete($params[1]));
     break;
 case validateRoute('GET', 'faq'):
     $faq = new Faq($db, $user);
     httpResponse($faq->query());
     break;
 case validateRoute('POST', 'faq'):
     $faq = new Faq($db, $user);
     httpResponse($faq->create($postdata));
     break;
 case validateRoute('PATCH', 'faq/\\d+'):
     $faq = new Faq($db, $user);
     httpResponse($faq->update($params[1], $postdata));
     break;
 case validateRoute('DELETE', 'faq/\\d+'):
     $faq = new Faq($db, $user);
     httpResponse($faq->delete($params[1]));
     break;
 case validateRoute('GET', 'polls'):
     $polls = new Polls($db, $user);