ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\UI\Implementation\Component\ReplaceContentSignal Class Reference

Class ReplaceContentSignal. More...

+ Inheritance diagram for ILIAS\UI\Implementation\Component\ReplaceContentSignal:
+ Collaboration diagram for ILIAS\UI\Implementation\Component\ReplaceContentSignal:

Public Member Functions

 withAsyncRenderUrl (string $url)
 Get the same signal returning an element from the given url. More...
 
 getAsyncRenderUrl ()
 Get the url called to return the content. More...
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Component\Signal
 __construct (string $id)
 
 getId ()
 Get the ID of this signal. More...
 
 getOptions ()
 Get the options of this signal. More...
 
 addOption (string $key, $value)
 
 __toString ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\UI\Implementation\Component\Signal
 getOption (string $key)
 
- Protected Attributes inherited from ILIAS\UI\Implementation\Component\Signal
string $id
 
array $options = array()
 

Detailed Description

Class ReplaceContentSignal.

Dev note: This class is copied from the popover. TODO-> DRY and centralize it.

Author
Jesús López lopez.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 30 of file ReplaceContentSignal.php.

Member Function Documentation

◆ getAsyncRenderUrl()

ILIAS\UI\Implementation\Component\ReplaceContentSignal::getAsyncRenderUrl ( )

Get the url called to return the content.

Implements ILIAS\UI\Component\ReplaceContentSignal.

Definition at line 47 of file ReplaceContentSignal.php.

References ILIAS\UI\Implementation\Component\Signal\getOption().

47  : string
48  {
49  return (string) $this->getOption('url');
50  }
+ Here is the call graph for this function:

◆ withAsyncRenderUrl()

ILIAS\UI\Implementation\Component\ReplaceContentSignal::withAsyncRenderUrl ( string  $url)

Get the same signal returning an element from the given url.

Implements ILIAS\UI\Component\ReplaceContentSignal.

Definition at line 37 of file ReplaceContentSignal.php.

References ILIAS\UI\Implementation\Component\Signal\addOption().

37  : \ILIAS\UI\Component\ReplaceContentSignal
38  {
39  $clone = clone $this;
40  $clone->addOption('url', $url);
41  return $clone;
42  }
$url
Definition: shib_logout.php:68
+ Here is the call graph for this function:

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