public function AddCategory($categoryid) { array_push($this->Categories, CategoryFactory::GetCategory($categoryid)); }