public function __construct($value = '')
 {
     Helper::getConfig();
     if (!isset($_POST['action'])) {
         die;
     }
     $current_directory = isset($_POST['dir']) ? $_POST['dir'] : '';
     try {
         $this->flm = new \FLM($current_directory);
     } catch (\Exception $err) {
         var_dump($err);
         Helper::jsonError($err->getCode());
     }
     $action = $_POST['action'];
     $call = json_decode($action);
     if ($call) {
         $this->_processCall($call);
     } else {
         if (method_exists($this, $action)) {
             call_user_func(array($this, $action));
         }
     }
     die;
 }