public static function FetchAll() { global $db_connection; $res = array(); $result = $db_connection->query("SELECT * FROM `" . RequestOnRegister::$table . "`"); if (!$result) { return NULL; } while ($row = $result->fetch_assoc()) { array_push($res, RequestOnRegister::FetchFromAssoc($row)); } return $res; }