function __construct($categories, $id, $title, $description, $parent_id, $img)
 {
     parent::__construct($id, $title, true);
     $this->categories = $categories;
     $this->description = $description;
     $this->parent_id = $parent_id;
     $this->img = $img;
 }
 function __construct($categories, $id, $visible, $title, $description, $parent_id, $img, $showOnHome)
 {
     parent::__construct($id, $title, $visible);
     $this->categories = $categories;
     $this->description = $description;
     $this->parent_id = $parent_id;
     $this->img = $img;
     $this->showOnHome = $showOnHome == 1;
 }