parameters from url

This commit is contained in:
floppy0 2018-03-02 16:37:17 +01:00
parent 40800414cb
commit 83b871df06
1 changed files with 9 additions and 1 deletions

View File

@ -149,12 +149,20 @@ class Url
public function pageNumber()
{
if(isset($this->parameters['page'])) {
if (isset($this->parameters['page'])) {
return (int)$this->parameters['page'];
}
return 1;
}
public function parameter($field)
{
if (isset($this->parameters[$field])) {
return $this->parameters[$field];
}
return false;
}
public function setNotFound()
{
$this->setWhereAmI('page');