ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\GlobalScreen\Identification\ToolIdentificationProvider Class Reference

Class CoreIdentificationProvider. More...

+ Inheritance diagram for ILIAS\GlobalScreen\Identification\ToolIdentificationProvider:
+ Collaboration diagram for ILIAS\GlobalScreen\Identification\ToolIdentificationProvider:

Public Member Functions

 contextAwareIdentifier (string $identifier_string, bool $ignore_context=false)
 
 identifier (string $identifier_string)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Identification\CoreIdentificationProvider
 identifier (string $identifier_string)
 
Parameters
string$identifier_stringthis is a identifier which is only known to your component. The GlobalScreen services uses this string together with e.g. the classname of your provider to stack items or to ask your provider for further infos. The identification you get can be serialized and is used e.g. to store in database and cache. you don't need to take care of storing this.
Returns
IdentificationInterface use this CoreIdentification to put into your GlobalScreen-elements.
More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
 __construct (protected Provider $provider, protected SerializerInterface $serializer, protected IdentificationMap $map)
 CoreIdentificationProvider constructor. More...
 
 fromSerializedString (string $serialized_string)
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
string $class_name = ''
 
- Static Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
static array $instances = []
 

Detailed Description

Member Function Documentation

◆ contextAwareIdentifier()

ILIAS\GlobalScreen\Identification\ToolIdentificationProvider::contextAwareIdentifier ( string  $identifier_string,
bool  $ignore_context = false 
)

Implements ILIAS\GlobalScreen\Identification\ToolIdentificationProviderInterface.

Definition at line 34 of file ToolIdentificationProvider.php.

References $DIC.

34  : IdentificationInterface
35  {
36  if ($ignore_context) {
37  return parent::identifier($identifier_string);
38  }
39  global $DIC;
40 
41  $get = $DIC->http()->request()->getQueryParams();
42  if (isset($get['ref_id'])) {
43  $identifier_string .= '_' . $get['ref_id'];
44  }
45 
46  return parent::identifier($identifier_string);
47  }
global $DIC
Definition: shib_login.php:22

◆ identifier()

ILIAS\GlobalScreen\Identification\ToolIdentificationProvider::identifier ( string  $identifier_string)

Implements ILIAS\GlobalScreen\Identification\IdentificationProviderInterface.

Definition at line 53 of file ToolIdentificationProvider.php.

53  : IdentificationInterface
54  {
55  throw new LogicException('Tools must use contextAwareIdentifier');
56  }

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