- Generic demo check in base controller - Site synchronization - User show pagination preserve scroll
28 lines
565 B
PHP
28 lines
565 B
PHP
<?php
|
|
|
|
namespace App\Services\Ploi\Resources;
|
|
|
|
use App\Services\Ploi\Ploi;
|
|
|
|
class Synchronize extends Resource
|
|
{
|
|
private $endpoint = 'synchronize';
|
|
|
|
public function __construct(Ploi $ploi = null, int $id = null)
|
|
{
|
|
parent::__construct($ploi, $id);
|
|
|
|
$this->setEndpoint($this->endpoint);
|
|
}
|
|
|
|
public function servers()
|
|
{
|
|
return $this->getPloi()->makeAPICall($this->getEndpoint() . '/servers');
|
|
}
|
|
|
|
public function sites()
|
|
{
|
|
return $this->getPloi()->makeAPICall($this->getEndpoint() . '/sites');
|
|
}
|
|
}
|