Renamed internal object names to represent a difference between standard objects and database records.
This commit is contained in:
parent
8e2e1eaba1
commit
dc15ce5bb9
16 changed files with 79 additions and 315 deletions
|
@ -5,7 +5,7 @@
|
|||
import('net.nosial.federationlib');
|
||||
$federationlib = new \FederationLib\FederationLib();
|
||||
|
||||
$client = new \FederationLib\Objects\Client();
|
||||
$client = new \FederationLib\Objects\ClientRecord();
|
||||
$client->setDescription('This is a test client generated by a test script.');
|
||||
|
||||
$uuid = $federationlib->getClientManager()->registerClient($client);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
import('net.nosial.federationlib');
|
||||
$federationlib = new \FederationLib\FederationLib();
|
||||
|
||||
$client = new \FederationLib\Objects\Client();
|
||||
$client = new \FederationLib\Objects\ClientRecord();
|
||||
$client->setDescription('This is a test client generated by a test script.');
|
||||
|
||||
$uuid = $federationlib->getClientManager()->registerClient($client);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// loop 50 times to create 50 clients
|
||||
for($i = 0; $i < 50; $i++)
|
||||
{
|
||||
$client = new \FederationLib\Objects\Client();
|
||||
$client = new \FederationLib\Objects\ClientRecord();
|
||||
$client->setDescription('This is a test client generated by a test script.');
|
||||
$client->enableAuthentication();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue