@@ -4866,7 +4866,7 @@ public function getLicense(){
4866
4866
$ url = $ this ->server_url . "/admin/index.php " ;
4867
4867
$ postdata = 'op=getlicense ' ;
4868
4868
$ buffer = $ this ->doPOST ($ url , $ postdata );
4869
- $ collection = new Collection ($ buffer , 'license ' , ' LicenseRecord ' );
4869
+ $ collection = new Collection ($ buffer , 'license ' , LicenseRecord::class );
4870
4870
$ this ->stopTimer ();
4871
4871
if ($ collection ->getNumberOfRecords () > 0 )
4872
4872
return $ collection ->getRecords ()[0 ];
@@ -4882,7 +4882,7 @@ public function getAdGroups(){
4882
4882
$ url = $ this ->server_url . "/admin/index.php " ;
4883
4883
$ postdata = 'op=getadgroups ' ;
4884
4884
$ buffer = $ this ->doPOST ($ url , $ postdata );
4885
- $ collection = new Collection ($ buffer , "entry " , " AdgroupRecord " , "meta " );
4885
+ $ collection = new Collection ($ buffer , "entry " , AdgroupRecord::class , "meta " );
4886
4886
$ this ->stopTimer ();
4887
4887
if ($ collection ->getNumberOfRecords () > 0 )
4888
4888
{
@@ -4946,7 +4946,7 @@ public function getGroups(){
4946
4946
$ url = $ this ->server_url . "/admin/index.php " ;
4947
4947
$ postdata = 'op=getgroups ' ;
4948
4948
$ buffer = $ this ->doPOST ($ url , $ postdata );
4949
- $ collection = new Collection ($ buffer , "group " , " GroupRecord " , "meta " );
4949
+ $ collection = new Collection ($ buffer , "group " , GroupRecord::class , "meta " );
4950
4950
$ this ->stopTimer ();
4951
4951
if ($ collection ->getNumberOfRecords () > 0 )
4952
4952
{
@@ -5659,7 +5659,7 @@ public function getRmcClients($username = '', $status = ''){
5659
5659
$ postdata = 'op=getrmcclients&start=0&end=10 ' ;
5660
5660
}
5661
5661
$ buffer = $ this ->doPOST ($ url , $ postdata );
5662
- $ collection = new Collection ($ buffer , "rmc_client " , " RMCRecord " , "meta " );
5662
+ $ collection = new Collection ($ buffer , "rmc_client " , RMCRecord::class , "meta " );
5663
5663
$ this ->stopTimer ();
5664
5664
if ($ collection ->getNumberOfRecords () > 0 )
5665
5665
{
@@ -5705,7 +5705,7 @@ public function getRmcCommands($clientid){
5705
5705
$ url = $ this ->server_url . "/admin/index.php " ;
5706
5706
$ postdata = 'op=getrmccommands&remote_client_id= ' . $ clientid ;
5707
5707
$ buffer = $ this ->doPOST ($ url , $ postdata );
5708
- $ collection = new Collection ($ buffer , "rmc_command " , " RMCCommandRecord " );
5708
+ $ collection = new Collection ($ buffer , "rmc_command " , RMCCommandRecord::class );
5709
5709
$ this ->stopTimer ();
5710
5710
if ($ collection ->getNumberOfRecords () > 0 )
5711
5711
{
0 commit comments