mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
add method hasParam()
This commit is contained in:
parent
34e623e292
commit
2e25da5719
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user