ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Sub.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4 
6 
7 use ILIAS\UI\Component as C;
9 
14 class Sub extends Panel implements C\Panel\Sub
15 {
16  use ComponentHelper;
17 
22  private $card = null;
23 
27  public function withCard(C\Card\Card $card)
28  {
29  $clone = clone $this;
30  $clone->card = $card;
31  return $clone;
32  }
33 
37  public function getCard()
38  {
39  return $this->card;
40  }
41 }
trait ComponentHelper
Provides common functionality for component implementations.