What have you explained here? It's more like Copy this and paste that.
There is absolutely nothing to explain. This tutorial isn't aimed at newbies so I assume you know what those functions does. If you don't, then go read tutorials. This tutorial shows how to load server objects from MySQL. It's not a tutorial to explain functions.