/**
  * @private
  */
 function _getDestination()
 {
     $dest = HttpVars::getRequestValue("dest");
     $val = new IntegerValidator();
     if (!$val->validate($dest) || $dest < 1 || $dest > 3) {
         $dest = 1;
     }
     return $dest;
 }
 /**
  * retrieves the current status from the request
  *
  * @private
  * @return nothing
  */
 function getStatusFromRequest()
 {
     $status = HttpVars::getRequestValue("status");
     // validate the value
     $val = new IntegerValidator();
     if (!$val->validate($status)) {
         $status = UserStatus::getDefaultStatus();
     }
     // if the value validated, check if it is a valid status
     if (!UserStatus::isValidStatus($status)) {
         $status = UserStatus::getDefaultStatus();
     }
     return $status;
 }
 /**
  * gets the current page from the HTTP request
  *
  * @return the page number from the request
  * @static
  */
 function getCurrentPageFromRequest()
 {
     // get the value from the request
     $page = HttpVars::getRequestValue(VIEW_DEFAULT_PAGE_PARAMETER);
     // but first of all, validate it
     $val = new IntegerValidator();
     if (!$val->validate($page)) {
         $page = VIEW_DEFAULT_START_PAGE;
     }
     return $page;
 }