|
|
@@ -2352,4 +2352,25 @@ class BBus extends DolibarrApi
|
|
|
}
|
|
|
return $array;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get events ids
|
|
|
+ *
|
|
|
+ * @return array|mixed Data without useless information
|
|
|
+ *
|
|
|
+ * @url POST /getAllEventids
|
|
|
+ */
|
|
|
+ public function getAllEventids()
|
|
|
+ {
|
|
|
+ global $db;
|
|
|
+ $array = [];
|
|
|
+ $sql = "SELECT rowid FROM llx_bbus_basicservices WHERE is_event = '1'";
|
|
|
+ $result = $db->query($sql);
|
|
|
+ if($db->num_rows($result) > 0){
|
|
|
+ while($row = $db->fetch_object($result)){
|
|
|
+ $array[] = $row->rowid;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return $array;
|
|
|
+ }
|
|
|
}
|