ILIAS  trunk Revision v12.0_alpha-1329-g1094ddb0c33
ILIAS\StaticURL\Response\CanHandleWithURIPath Class Reference

Returned by a Handler when it has successfully resolved the Request. More...

+ Inheritance diagram for ILIAS\StaticURL\Response\CanHandleWithURIPath:
+ Collaboration diagram for ILIAS\StaticURL\Response\CanHandleWithURIPath:

Public Member Functions

 __construct (private string $uri_path, private int $shift=0)
 
 getURIPath ()
 
 targetCanBeReached ()
 
 shift ()
 
 getURIPath ()
 
 targetCanBeReached ()
 
 shift ()
 

Detailed Description

Returned by a Handler when it has successfully resolved the Request.

The HandlerService redirects the user to {

See also
self::getURIPath()} (optionally shifting one segment off the base URI first, see {
self::shift()}).
\ILIAS\StaticURL\Response\Factory::can()
Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 29 of file CanHandleWithURIPath.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\StaticURL\Response\CanHandleWithURIPath::__construct ( private string  $uri_path,
private int  $shift = 0 
)

Definition at line 31 of file CanHandleWithURIPath.php.

34 {
35 }

Member Function Documentation

◆ getURIPath()

ILIAS\StaticURL\Response\CanHandleWithURIPath::getURIPath ( )

Implements ILIAS\StaticURL\Response\Response.

Definition at line 37 of file CanHandleWithURIPath.php.

37 : ?string
38 {
39 return $this->uri_path;
40 }

◆ shift()

ILIAS\StaticURL\Response\CanHandleWithURIPath::shift ( )

Implements ILIAS\StaticURL\Response\Response.

Definition at line 47 of file CanHandleWithURIPath.php.

47 : int
48 {
49 return $this->shift;
50 }

◆ targetCanBeReached()

ILIAS\StaticURL\Response\CanHandleWithURIPath::targetCanBeReached ( )

Implements ILIAS\StaticURL\Response\Response.

Definition at line 42 of file CanHandleWithURIPath.php.

42 : bool
43 {
44 return true;
45 }

The documentation for this class was generated from the following file: