mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-24 07:08:40 +00:00
Dockblocks
This commit is contained in:
parent
dbe65e78c8
commit
3c8565b793
|
|
@ -87,6 +87,14 @@ class UriFactory
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all uri components
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function clearAll() : bool
|
||||
{
|
||||
self::$uri = [];
|
||||
|
|
@ -94,6 +102,16 @@ class UriFactory
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear uri component
|
||||
*
|
||||
* @param string $key Uri component key
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function clear(string $key) : bool
|
||||
{
|
||||
if(isset(self::$uri[$key])) {
|
||||
|
|
@ -105,6 +123,16 @@ class UriFactory
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear uri components that follow a certain pattern
|
||||
*
|
||||
* @param string $pattern Uri key pattern to remove
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function clearLike(string $pattern) : bool
|
||||
{
|
||||
$success = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user