mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 18:40:39 +00:00
add more types to getStatisticalData()
This commit is contained in:
parent
2b6a68cc28
commit
92ce4ff1bc
|
|
@ -3318,6 +3318,24 @@ class SeedDMS_Core_DMS {
|
||||||
$res['total'] = $sum;
|
$res['total'] = $sum;
|
||||||
}
|
}
|
||||||
return $resArr;
|
return $resArr;
|
||||||
|
case 'docstotal':
|
||||||
|
$queryStr = "SELECT count(*) AS total FROM `tblDocuments`";
|
||||||
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
|
if(is_bool($resArr) && $resArr == false)
|
||||||
|
return false;
|
||||||
|
return (int) $resArr[0]['total'];
|
||||||
|
case 'folderstotal':
|
||||||
|
$queryStr = "SELECT count(*) AS total FROM `tblFolders`";
|
||||||
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
|
if(is_bool($resArr) && $resArr == false)
|
||||||
|
return false;
|
||||||
|
return (int) $resArr[0]['total'];
|
||||||
|
case 'userstotal':
|
||||||
|
$queryStr = "SELECT count(*) AS total FROM `tblUsers`";
|
||||||
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
|
if(is_bool($resArr) && $resArr == false)
|
||||||
|
return false;
|
||||||
|
return (int) $resArr[0]['total'];
|
||||||
case 'sizeperuser':
|
case 'sizeperuser':
|
||||||
$queryStr = "SELECT ".$this->db->concat(array('c.`fullName`', "' ('", 'c.`login`', "')'"))." AS `key`, sum(`fileSize`) AS total FROM `tblDocuments` a LEFT JOIN `tblDocumentContent` b ON a.id=b.`document` LEFT JOIN `tblUsers` c ON a.`owner`=c.`id` GROUP BY a.`owner`, c.`fullName`";
|
$queryStr = "SELECT ".$this->db->concat(array('c.`fullName`', "' ('", 'c.`login`', "')'"))." AS `key`, sum(`fileSize`) AS total FROM `tblDocuments` a LEFT JOIN `tblDocumentContent` b ON a.id=b.`document` LEFT JOIN `tblUsers` c ON a.`owner`=c.`id` GROUP BY a.`owner`, c.`fullName`";
|
||||||
$resArr = $this->db->getResultArray($queryStr);
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
- fix validating multi value attributes
|
- fix validating multi value attributes
|
||||||
|
- SeedDMS_Core_User::removeFromProcesses() can be limited to a list of documents. In that case only the last version will be modified.
|
||||||
|
- add more types to getStatisticalData()
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user