code: protected function getParam($param)
      {
          if (isset($_POST[$param])) {
              return $_POST[$param];
          } elseif (isset($_GET[$param])) {
              return $_GET[$param];
          }
  
          return;
      }
docs: Get param.
  
  @param [[@doctodo param_type:param]] $param [[@doctodo param_description:param]]
  
  @return [[@doctodo return_type:getParam]] [[@doctodo return_description:getParam]]