Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     if (!empty($_GET['action']) && $_GET['action'] == 'delete') {
         $this->deletecomment();
     } else {
         $this->listcomments();
     }
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     if (!empty($_GET['action'])) {
         switch ($_GET['action']) {
             case 'create':
                 $this->addpost();
                 break;
             default:
                 $this->listposts();
                 break;
             case 'save':
                 $this->savepost();
                 break;
         }
     } else {
         $this->listposts();
     }
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
 }