/**

* Get a param variable from GET or POST Parameter

* @param $name

* @param string $priority

* @return bool | string | array

*/

public function get ( $name , $priority = "default" ) {

//default: get before post

if ( $priority == "default" ) {

if ( isset ( self :: $get [ $name ] ) ) return self :: $get [ $name ] ;

if ( isset ( self :: $post [ $name ] ) ) return self :: $post [ $name ] ;

}

return false ;

}

public function merge ( ) {

foreach ( self :: $get as $key => $value ) {

self :: $post [ $key ] = $value ;

}

}

/**

* Get the RequestParams

* TODO: Why we use GET & Post to get the params? We can use only $_REQUEST for this.

* @return array

*/

public function getParams ( ) {

foreach ( self :: $get as $key => $value ) {

self :: $params [ $key ] = $value ;

}

foreach ( self :: $post as $key => $value ) {

self :: $params [ $key ] = $value ;

}

foreach ( $_REQUEST as $key => $value ) {

self :: $params [ $key ] = $value ;

}

return self :: $params ;