Source of file CommonInfo.php
Size: 1,368 Bytes - Last Modified: 2018-11-03T09:50:48-04:00
G:/AdobeConnectClient/src/Commands/CommonInfo.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | <?php namespace AdobeConnectClient\Commands; use AdobeConnectClient\Command; use AdobeConnectClient\Converter\Converter; use AdobeConnectClient\Helpers\ValueTransform as VT; use AdobeConnectClient\Helpers\StatusValidate; use AdobeConnectClient\Helpers\SetEntityAttributes as FillObject; use AdobeConnectClient\Entities\CommonInfo as CommonInfoEntity; /** * Gets the common info * * More info see {@link https://helpx.adobe.com/adobe-connect/webservices/common-info.html#common_info} */ class CommonInfo extends Command { /** * @var string */ protected $domain = ''; /** * @param string $domain */ public function __construct($domain = '') { $this->domain = $domain; } /** * @inheritdoc * * @return CommonInfoEntity */ protected function process() { $parameters = [ 'action' => 'common-info' ]; if (!empty($this->domain)) { $parameters += [ 'domain' => VT::toString($this->domain) ]; } $response = Converter::convert( $this->client->doGet($parameters) ); StatusValidate::validate($response['status']); $commonInfo = new CommonInfoEntity(); FillObject::setAttributes($commonInfo, $response['common']); return $commonInfo; } } |