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