ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ReplaceContentSignal.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
16 {
17  use ComponentHelper;
18 
19 
23  public function withAsyncRenderUrl($url)
24  {
25  $this->checkStringArg('url', $url);
26  $clone = clone $this;
27  $clone->addOption('url', $url);
28 
29  return $clone;
30  }
31 
32 
36  public function getAsyncRenderUrl()
37  {
38  return (string) $this->getOption('url');
39  }
40 }
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
withAsyncRenderUrl($url)
Get the same signal returning an element from the given url.ReplaceContentSignal
This signal replaces the content of a component by ajax.
getAsyncRenderUrl()
Get the url called to return the content.string
$url