Source of file PrincipalDelete.php
Size: 1,031 Bytes - Last Modified: 2018-11-03T09:50:48-04:00
G:/AdobeConnectClient/src/Commands/PrincipalDelete.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | <?php namespace AdobeConnectClient\Commands; use AdobeConnectClient\Command; use AdobeConnectClient\Converter\Converter; use AdobeConnectClient\Helpers\StatusValidate; /** * Remove one principal, either user or group. * * More info see {@link https://helpx.adobe.com/adobe-connect/webservices/principals-delete.html} */ class PrincipalDelete extends Command { /** * @var int */ protected $principalId; /** * @param int $principalId */ public function __construct($principalId) { $this->principalId = (int) $principalId; } /** * @inheritdoc * * @return bool */ protected function process() { $response = Converter::convert( $this->client->doGet([ 'action' => 'principals-delete', 'principal-id' => $this->principalId, 'session' => $this->client->getSession() ]) ); StatusValidate::validate($response['status']); return true; } } |