Tar-Minyatur/CodeSnippets — pull request #2 by chani (2014-01-24 09:50:50+00:00)
Title: Update RecursiveMenu.class.php

Since the constructor is the only place which needs the database it's imho better to just pass the arrays instead of the database. Also in my use-case I'm not using PDO but another db abstraction class. Instead of letting me change the constructor as soon as the database layer changes, let me pass arrays.