public function __construct(JDatabaseDriver $db, $directory) { $this->db = $db; $this->xmlDirectory = $directory; }