* Code for task #90780.

This commit is contained in:
tianshujie
2023-04-11 15:38:44 +08:00
parent ebe7eb7217
commit 1f026f246a
8 changed files with 95 additions and 3 deletions
+19
View File
@@ -3350,4 +3350,23 @@ class docModel extends model
return $otherEditing;
}
/**
* Get document dynamic.
*
* @param object $pager
* @access public
* @return array
*/
public function getDynamic($pager = null)
{
$actions = $this->dao->select('*')->from(TABLE_ACTION)
->where('objectType')->in('doclib,doc')
->andWhere('vision')->eq($this->config->vision)
->orderBy('date_desc')
->page($pager)
->fetchAll();
return $this->loadModel('action')->transformActions($actions);
}
}