Format doc list
This commit is contained in:
1 parent
fa999fe1ba
commit
e68c3148a2
5 files changed
+21
-4
No files matched your search
+4
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user