Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -72,6 +72,7 @@ class files extends ItemController
|
||||
* @apiparam int hidden If 1, only files which are hidden are returned, if 0 only not hidden
|
||||
* @apiparam int pinned If 1, only files which are pinned are returned, if 0 only not pinned
|
||||
* @apiparam int featured If 1, only files which are featured are returned, if 0 only not featured
|
||||
* @apiparam int submitted_after Find files submitted after a unix timestamp
|
||||
* @apiparam string sortBy What to sort by. Can be 'date' for creation date, 'title', 'updated', 'popular', 'downloads' or leave unspecified for ID
|
||||
* @apiparam string sortDir Sort direction. Can be 'asc' or 'desc' - defaults to 'asc'
|
||||
* @apiparam int page Page number
|
||||
@@ -101,6 +102,11 @@ class files extends ItemController
|
||||
}
|
||||
}
|
||||
|
||||
if( isset( Request::i()->submitted_after ) )
|
||||
{
|
||||
$where[] = [ 'file_submitted > ?', Request::i()->submitted_after ];
|
||||
}
|
||||
|
||||
/* Return */
|
||||
return $this->_list( $where, 'categories', FALSE, $sortBy );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user