piler/webui/model/audit/removal.php
Janos SUTO ea3b0c372b Added data officer role
Signed-off-by: Janos SUTO <sj@acts.hu>
2019-07-16 20:05:26 +02:00

17 lines
411 B
PHP

<?php
class ModelAuditRemoval extends Model {
public function get_pending_removals($page_len = 0) {
$limit = '';
$from = (int)$page * (int)$page_len;
if($page_len > 0) { $limit = " LIMIT " . (int)$from . ", " . (int)$page_len; }
$query = $this->db->query("SELECT * FROM " . TABLE_DELETED . " WHERE deleted=0 ORDER BY date1 DESC $limit");
return $query->rows;
}
}