Skip to content

Commit 1f2745f

Browse files
Merge pull request #6 from tomfor/master
Fixed incorrect record type call
2 parents fd0744d + 6fccca7 commit 1f2745f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fccloudapi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4866,7 +4866,7 @@ public function getLicense(){
48664866
$url = $this->server_url . "/admin/index.php";
48674867
$postdata = 'op=getlicense';
48684868
$buffer = $this->doPOST($url, $postdata);
4869-
$collection = new Collection($buffer, 'license', 'LicenseRecord');
4869+
$collection = new Collection($buffer, 'license', LicenseRecord::class);
48704870
$this->stopTimer();
48714871
if ($collection->getNumberOfRecords() > 0)
48724872
return $collection->getRecords()[0];
@@ -4882,7 +4882,7 @@ public function getAdGroups(){
48824882
$url = $this->server_url . "/admin/index.php";
48834883
$postdata = 'op=getadgroups';
48844884
$buffer = $this->doPOST($url, $postdata);
4885-
$collection = new Collection($buffer, "entry", "AdgroupRecord" , "meta");
4885+
$collection = new Collection($buffer, "entry", AdgroupRecord::class, "meta");
48864886
$this->stopTimer();
48874887
if ($collection->getNumberOfRecords() > 0)
48884888
{
@@ -4946,7 +4946,7 @@ public function getGroups(){
49464946
$url = $this->server_url . "/admin/index.php";
49474947
$postdata = 'op=getgroups';
49484948
$buffer = $this->doPOST($url, $postdata);
4949-
$collection = new Collection($buffer, "group", "GroupRecord" , "meta");
4949+
$collection = new Collection($buffer, "group", GroupRecord::class , "meta");
49504950
$this->stopTimer();
49514951
if ($collection->getNumberOfRecords() > 0)
49524952
{
@@ -5659,7 +5659,7 @@ public function getRmcClients($username = '', $status = ''){
56595659
$postdata = 'op=getrmcclients&start=0&end=10';
56605660
}
56615661
$buffer = $this->doPOST($url, $postdata);
5662-
$collection = new Collection($buffer, "rmc_client", "RMCRecord" , "meta");
5662+
$collection = new Collection($buffer, "rmc_client", RMCRecord::class, "meta");
56635663
$this->stopTimer();
56645664
if ($collection->getNumberOfRecords() > 0)
56655665
{
@@ -5705,7 +5705,7 @@ public function getRmcCommands($clientid){
57055705
$url = $this->server_url . "/admin/index.php";
57065706
$postdata = 'op=getrmccommands&remote_client_id=' . $clientid ;
57075707
$buffer = $this->doPOST($url, $postdata);
5708-
$collection = new Collection($buffer, "rmc_command", "RMCCommandRecord" );
5708+
$collection = new Collection($buffer, "rmc_command", RMCCommandRecord::class);
57095709
$this->stopTimer();
57105710
if ($collection->getNumberOfRecords() > 0)
57115711
{

0 commit comments

Comments
 (0)