New parameters of function 'local_webhooks_get_list_records' have been added
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
e0a43273a3
commit
422cbfd57d
6
lib.php
6
lib.php
@ -96,12 +96,14 @@ function local_webhooks_get_record($serviceid) {
|
|||||||
*
|
*
|
||||||
* @param number $limitfrom
|
* @param number $limitfrom
|
||||||
* @param number $limitnum
|
* @param number $limitnum
|
||||||
|
* @param array $conditions
|
||||||
|
* @param string $sort
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function local_webhooks_get_list_records($limitfrom = 0, $limitnum = 0) {
|
function local_webhooks_get_list_records($limitfrom = 0, $limitnum = 0, $conditions = array(), $sort = "id") {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
$listrecords = $DB->get_records(LOCAL_WEBHOOKS_NAME_TABLE, null, "id", "*", $limitfrom, $limitnum);
|
$listrecords = $DB->get_records(LOCAL_WEBHOOKS_NAME_TABLE, $conditions, $sort, "*", $limitfrom, $limitnum);
|
||||||
|
|
||||||
foreach ($listrecords as $servicerecord) {
|
foreach ($listrecords as $servicerecord) {
|
||||||
if (!empty($servicerecord->events)) {
|
if (!empty($servicerecord->events)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user