Koeus wrote:I have to scratch my head and wonder where the heck is the code?
it's in the class that extends this
abstract method:
class JDatabaseMySQL extends JDatabase
It might look strange in
PHP4 but would make sense if the code *was* written in PHP5 where classes can be defined as "abstract" to force the developer toimplement a certain interface to make sure nothing's missing. The above method in PHP5 would read:
abstract public function loadRow();
and no code inside.
That's OOP :-)
As a little rule of thumb: if there's a file in a folder named
foobar.php and there's a complementing
subfolder /foobar, then foobar.php is very likely an abstract class that's extended by the ones you find in /foobar/*.php
You'll see the same for table.php + /table/*.*, /session/storage.php + /session/storage/*.php and some others.
Oh, and at
http://api.joomla.org/li_Joomla-Framework.html you can indeed see the relationship of all the many classes; I woudn't call this "lack of reliable documentation" ;-) However, we're in the progress to improve this much further.
In any case: "
in dubio pro source code".
Have fun,
CirTap
You can have programs written fast, well, and cheap, but you only get to pick 2 ...
"I love deadlines. I like the whooshing sound they make as they fly by." Douglas Adams