ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
AbstractBaseTool.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use Closure;
26 
31 abstract class AbstractBaseTool extends AbstractParentItem implements isToolItem
32 {
34 
38  protected $close_callback;
39 
43  protected $initially_hidden = false;
44 
49  {
50  $clone = clone($this);
51  $clone->initially_hidden = $initially_hidden;
52 
53  return $clone;
54  }
55 
59  public function isInitiallyHidden() : bool
60  {
62  }
63 
68  {
69  $clone = clone($this);
70  $clone->close_callback = $close_callback;
71 
72  return $clone;
73  }
74 
78  public function getCloseCallback() : Closure
79  {
80  return $this->close_callback;
81  }
82 
86  public function hasCloseCallback() : bool
87  {
88  return $this->close_callback instanceof Closure;
89  }
90 }