/**
  * Set the action to call and log type to work with. After that call the action.
  */
 public static function init()
 {
     if (!empty($_GET['action']) and in_array($_GET['action'], array_keys(self::$actions))) {
         self::$action = $_GET['action'];
     } else {
         self::$action = 'table';
     }
     if (!empty($_GET['log_type']) and in_array($_GET['log_type'], array_keys(self::$logTypes))) {
         self::$logType = $_GET['log_type'];
     } else {
         self::$logType = 'question_post';
     }
     call_user_func(array(__CLASS__, self::$action));
 }