ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  use ComponentHelper;
16 
21  private $card = null;
22 
26  public function withCard(C\Card\Card $card){
27  $clone = clone $this;
28  $clone->card = $card;
29  return $clone;
30  }
31 
35  public function getCard() {
36  return $this->card;
37  }
38 }
39 ?>