add method hasParam()

This commit is contained in:
Uwe Steinmann 2020-05-12 12:02:03 +02:00
parent 34e623e292
commit 2e25da5719

View File

@ -69,6 +69,16 @@ class SeedDMS_View_Common {
return null;
}
/**
* Check if the view has a parameter with the given name
*
* @param string $name name of parameter
* @return boolean true if parameter exists otherwise false
*/
function hasParam($name) {
return isset($this->params[$name]) ? true : false;
}
public function unsetParam($name) {
if(isset($this->params[$name]))
unset($this->params[$name]);