/util/Param.php

Description

Parameter accessing helper functions

Functions
miGetParam (line 17)

Retrieves a param. First tryies from $_POST, and then $_GET. If the param is not found prints an error and terminates the application

  • return: the value
  • throws: miException
string miGetParam (string $param)
  • string $param: The param name
miGetParamDefault (line 36)

Retrieves a param or returns a default value.

First tryies from $_POST, and then $_GET. If the param is not found returns $defult

  • return: the value
string miGetParamDefault (string $param, string $default)
  • string $param: The param name
  • string $default: the default value
miHasParam (line 52)

Returns true if the param is set

  • return: true if the param is set
bool miHasParam (string $param)
  • string $param
miSetParam (line 65)

Sets the param value. This value can be then obtained from miGetParam It clears the $_GET array value, and sets the value into the $_POST and $_REQUEST arrays

  • access: public
void miSetParam (string $param, any $value)
  • string $param: The param name
  • any $value: the param value

Documentation generated on Thu, 08 May 2008 16:57:30 +0300 by phpDocumentor 1.4.1