Requests class

See 'constants for Requests class' for
informations about constant values used in this class.

Public methods:

  • dataExist(parameter) - checks if exists data in selected array. As a parameter use one of four defined constants named 'METHOD_...'.
  • valueExist(parameter1, parameter2) - checks if exist concrete value in selected array. First parameter is array name (like above), second is value's name.
  • reset() - reset all definied conditions.
  • defineCondition(parameter1, parameter2) - define value for concrete condition's name (use one of few defined names for conditions). First parameter is condition's name, second is a conditon's value.
  • addCondition(parameter1, parameter2, parameter3) - add condition for concrete value's name in selected array. First parameter is array's name, second is value's name, third is a condition's name.
  • testAllConditions() - test if all conditions are true. If not this method throw an exception with error message.
  • getAllPost() - get all values in _POST array.
  • getPost(parameter) - get selected value from _POST array. As a parameter is a value's name.
  • getAllGet() - get all values in _GET array.
  • getGet(parameter) - get selected value from _GET array. As a parameter is a value's name.
  • getAllRequest() - get all values in _RQUESTS array.
  • getRequest(parameter) - get selected value from _REQUEST array. As a parameter is a value's name.
  • getAllCookie() - get all values in _COOKIE array.
  • getCookie(parameter) - get selected value from _COOKIE array. As a parameter is a value's name.