ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
Link.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
28 class Link extends AbstractBaseItem implements canHaveParent, hasAction
29 {
30  use hasTitleTrait;
31  use hasActionTrait;
33 
34  public function __construct(
35  IdentificationInterface $provider_identification,
36  string $title
37  ) {
38  parent::__construct($provider_identification);
39  $this->title = $title;
40  }
41 
42  public function isTop(): bool
43  {
44  return !$this->hasParent();
45  }
46 
47 }
__construct(Container $dic, ilPlugin $plugin)