/**
  * Get size of the bookmarks table
  *
  * @return the formatted table size
  */
 public static function getTableSize()
 {
     $res = Doctrine::execute("SHOW TABLE STATUS Where Name like '%_bookmarks'");
     $tableInfo = $res->fetch();
     $size = $tableInfo['Data_length'];
     return Folder::formatSize($size);
 }
Ejemplo n.º 2
0
 /**
  * Get the Doctrine connection
  *
  * @return PHPUnit_Extensions_Database_DB_IDatabaseConnection
  */
 public function getConnection()
 {
     return Doctrine::getConnection();
 }