Daan is sweet to Kelley and delegates himself TestCMS code reflection
[ssproject1617.git] / testcms-final-anon / system / admin / controllers / comments.php
1 <?php defined('IN_CMS') or die('No direct access allowed.');
2
3 class Comments_controller {
4
5 public function status() {
6 Response::header('Content-Type', 'application/json');
7
8 // process post request
9 if(Input::method() == 'POST') {
10 Comments::update_status();
11 }
12 }
13
14 public function update() {
15 Response::header('Content-Type', 'application/json');
16
17 // process post request
18 if(Input::method() == 'POST') {
19 Comments::update();
20 }
21 }
22
23 public function remove() {
24 Response::header('Content-Type', 'application/json');
25
26 // process post request
27 if(Input::method() == 'POST') {
28 Comments::remove();
29 }
30 }
31
32 }