When looking at some of the examples earlier in this chapter, you've already seen how the idea of modularity is built into MDB2. The main purpose is to keep the base functionality lightweight and then include more functionality on demand, using the
Earlier in the chapter, the Extended module was loaded like this:
After this call you have access to all the methods that the Extended module provides, such as all the
get*() methods. The methods are accessible through the
extended property of the
In addition to that, in PHP5, due to the object overloading functionality, you can access the methods directly as methods of the
$mdb2 instance: ...