示例#1
0
 /**
  * Return the size of the revision in bytes.
  *
  * @param ItemRevisionDao $revision
  * @return int
  */
 public function getSize($revision)
 {
     $row = $this->database->fetchRow($this->database->select()->setIntegrityCheck(false)->from('bitstream', array('sum(sizebytes) as sum'))->where('itemrevision_id=?', $revision->getKey()));
     return $row['sum'];
 }