public function setUpDB()
 {
     lib_dbutils_ShusterDb::getInstance()->setErrorCodeFlag(true);
     $this->db = new PancakeTF_ShusterDB(lib_dbutils_ShusterDb::getInstance());
     $sql = file_get_contents(dirname(__FILE__) . '/../db/test_sql.sql');
     $sql = explode(';', $sql);
     foreach ($sql as $stmt) {
         try {
             $this->db->update($stmt);
         } catch (Exception $e) {
         }
     }
 }
 public function __construct($id, $options = array())
 {
     if (false === is_null($options['dba']) || false === $options['dba'] instanceof PancakeTF_DBAccessI) {
         $dba = new PancakeTF_ShusterDB(lib_dbutils_ShusterDb::getInstance());
     } else {
         $dba = $options['dba'];
     }
     if (false === isset($options['handler']) || false === $options['handler'] instanceof PancakeTF_PermissionHandlerI) {
         $ph = new PancakeTF_ForumPermissionHandler($dba);
     } else {
         $ph = $options['handler'];
     }
     parent::__construct($dba, $ph, $id, $options);
 }