ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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\Component\Signal
 getId ()
 Get the ID of this signal. More...
 
 getOptions ()
 Get the options of this signal. More...
 
 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...
 

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.

47 : string
48 {
49 return (string) $this->getOption('url');
50 }

◆ 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.

38 {
39 $clone = clone $this;
40 $clone->addOption('url', $url);
41 return $clone;
42 }
This signal replaces the content of a component by ajax.
$url
Definition: shib_logout.php:68

References $url.


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