Format doc list

This commit is contained in:
2019-09-07 21:36:21 +02:00
parent fa999fe1ba
commit e68c3148a2
5 changed files with 21 additions and 4 deletions

View File

@@ -58,7 +58,10 @@ class Doc extends PhpObject {
}
public function getList() {
return $this->oDb->selectRows(array('select'=>array(Db::getId(self::DOC_TABLE), 'type', 'filename'), 'from'=>self::DOC_TABLE, 'constraints'=>$this->getDocKeys()));
$asDocs = $this->oDb->selectRows(array('select'=>array(Db::getId(self::DOC_TABLE), 'type', 'filename'), 'from'=>self::DOC_TABLE, 'constraints'=>$this->getDocKeys()));
foreach($asDocs as &$asDoc) $asDoc['filepath'] = self::getFilePath($asDoc['filename']);
return $asDocs;
}
private function getDocKeys() {