Jake Vanderwerf
2026-06-29 4089ba01e0881c89a72332e13bc3a80b6bddec2a
inc/managers/Dashboard/Section.php
@@ -12,12 +12,13 @@
   protected string $icon = '';
   protected int $order = 0;
   protected bool $isLink = false;
   protected ?string $permission = null;
   public function __construct(string $title, ?string $slug = null, string $icon = '', ?string $parent = null) {
      $this->title = $title;
      $this->slug = is_null($slug) ? DashboardPage::sanitizeString($title) : DashboardPage::sanitizeString($slug);
      $this->icon = $icon;
      $this->parent = $parent;
      $this->parent = is_null($parent) ? $parent : DashboardPage::sanitizeString($parent);
   }
   public function getTitle():string
@@ -52,4 +53,13 @@
   {
      return $this->isLink;
   }
   public function setPermission(string $permission):void
   {
      $this->permission = $permission;
   }
   public function getPermission():?string
   {
      return $this->permission;
   }
}