ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 (Provider $provider, SerializerInterface $serializer, IdentificationMap $map)
 CoreIdentificationProvider constructor. More...
 
 fromSerializedString (string $serialized_string)
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
IdentificationMap $map
 
Provider $provider
 
Serializer SerializerInterface $serializer
 
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 33 of file ToolIdentificationProvider.php.

References $DIC.

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

◆ identifier()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationProviderInterface.

Definition at line 51 of file ToolIdentificationProvider.php.

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

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