ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\LegalDocuments\Value\Target Class Reference
+ Collaboration diagram for ILIAS\LegalDocuments\Value\Target:

Public Member Functions

 __construct (private $path, private readonly string $command='', private readonly array $query_params=[])
 
 guiPath ()
 
 command ()
 
 guiName ()
 
 queryParams ()
 

Detailed Description

Definition at line 23 of file Target.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\Value\Target::__construct ( private  $path,
private readonly string  $command = '',
private readonly array  $query_params = [] 
)
Parameters
string|list<string>$path
array<string,string>$query_params

Definition at line 29 of file Target.php.

30  {
31  }

Member Function Documentation

◆ command()

ILIAS\LegalDocuments\Value\Target::command ( )

Definition at line 41 of file Target.php.

41  : string
42  {
43  return $this->command;
44  }

◆ guiName()

ILIAS\LegalDocuments\Value\Target::guiName ( )

Definition at line 46 of file Target.php.

References $path, and ILIAS\LegalDocuments\Value\Target\guiPath().

46  : string
47  {
48  $path = $this->guiPath();
49  return is_array($path) ? $path[count($path) - 1] : $path;
50  }
$path
Definition: ltiservices.php:29
+ Here is the call graph for this function:

◆ guiPath()

ILIAS\LegalDocuments\Value\Target::guiPath ( )
Returns
string|list<string>

Definition at line 36 of file Target.php.

References $path.

Referenced by ILIAS\LegalDocuments\Value\Target\guiName().

37  {
38  return $this->path;
39  }
$path
Definition: ltiservices.php:29
+ Here is the caller graph for this function:

◆ queryParams()

ILIAS\LegalDocuments\Value\Target::queryParams ( )
Returns
array<string, string>

Definition at line 55 of file Target.php.

55  : array
56  {
57  return $this->query_params;
58  }

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