public static function getFont() { if (self::$font == null) { $FontFilters = array(); //todo set default get $FontFilters['Fonderie'] = self::getFonderieId(); $FontFilters['Family'] = self::getFamilyId(); if (isset($_GET['gender'])) { $FontFilters['Gender'] = $_GET['gender']; } if (isset($_GET['type'])) { $FontFilters['Type'] = $_GET['type']; } if (isset($_GET['font'])) { $FontFilters['Font'] = $_GET['font']; } self::$font = Font::getMany($FontFilters); } return self::$font; }