mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
add method hasParam()
This commit is contained in:
parent
34e623e292
commit
2e25da5719
|
@ -69,6 +69,16 @@ class SeedDMS_View_Common {
|
||||||
return null;
|
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) {
|
public function unsetParam($name) {
|
||||||
if(isset($this->params[$name]))
|
if(isset($this->params[$name]))
|
||||||
unset($this->params[$name]);
|
unset($this->params[$name]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user