* Code for task #90780.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user