function BookManager(&$db)
 {
     parent::DBTableManager($db, 'books', 'Book', 'authors', 'Author');
 }
 function installAllTables()
 {
     parent::installAllTables();
     $anon = $this->newUser();
     $anon->initFromArray(array('login' => 'HI_I_AM_THE_ANONYMOUS_USER', 'email' => 'AnonymousMail', 'password' => md5('WHAT_DO_I_FILL_IN_HERE')));
     $this->addUserToDatabase($anon);
     $anon->resetPassword(24);
     // to prevent stupid hackers
 }
 function installAllTables()
 {
     parent::installAllTables();
     $site = $this->newPage();
     $site->initFromArray(array('name' => 'site', 'parent_page_id' => 0));
     $this->addPageToDatabase($site);
     $admin = $this->newPage();
     $admin->initFromArray(array('name' => 'admin', 'parent_page_id' => 0));
     $this->addPageToDatabase($admin);
 }