12-05-2011, 06:47 PM
Hi Uwe
I had to input more than 32000.
So I changed getpath() and getDir() in inc.ClassDocument.php like followings.
This support more than 20000*31998 documents.
but supporting lots of document, I also had to change ViewFolder.php.
// function getPath() { return $this->_document->getID() .'/'. $this->_version . $this->_fileType; }
function getPath() { return $this->_document->getDir() .'/'. $this->_version . $this->_fileType; }
function getDir() { /* {{{ */
if($this->_id > 20000){
$dirid = (int)( $this->_id / 20000 ) + 1;
}else{
$dirid = 1;
}
return $dirid."/".$this->_id."/";
} /* }}} */
I had to input more than 32000.
So I changed getpath() and getDir() in inc.ClassDocument.php like followings.
This support more than 20000*31998 documents.
but supporting lots of document, I also had to change ViewFolder.php.
// function getPath() { return $this->_document->getID() .'/'. $this->_version . $this->_fileType; }
function getPath() { return $this->_document->getDir() .'/'. $this->_version . $this->_fileType; }
function getDir() { /* {{{ */
if($this->_id > 20000){
$dirid = (int)( $this->_id / 20000 ) + 1;
}else{
$dirid = 1;
}
return $dirid."/".$this->_id."/";
} /* }}} */