Source of file PermissionUpdate.php
Size: 1,310 Bytes - Last Modified: 2018-11-03T09:50:48-04:00
G:/AdobeConnectClient/src/Commands/PermissionUpdate.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | <?php namespace AdobeConnectClient\Commands; use AdobeConnectClient\Command; use AdobeConnectClient\ArrayableInterface; use AdobeConnectClient\Converter\Converter; use AdobeConnectClient\Helpers\StatusValidate; /** * Updates the principal's permissions to access a SCO or the access mode if the acl-id is a Meeting * * More info see {@link https://helpx.adobe.com/adobe-connect/webservices/permissions-update.html} * For SCO access mode info see {@link https://helpx.adobe.com/adobe-connect/webservices/common-xml-elements-attributes.html#permission_id} */ class PermissionUpdate extends Command { /** * @var array */ protected $parameters; /** * @param ArrayableInterface $permission */ public function __construct(ArrayableInterface $permission) { $this->parameters = [ 'action' => 'permissions-update', ]; $this->parameters += $permission->toArray(); } /** * @inheritdoc * * @return bool */ protected function process() { $response = Converter::convert( $this->client->doGet( $this->parameters + ['session' => $this->client->getSession()] ) ); StatusValidate::validate($response['status']); return true; } } |