. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_EntryContextDataResult extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaEntryContextDataResult'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; if(!empty($xml->isSiteRestricted)) $this->isSiteRestricted = true; if(!empty($xml->isCountryRestricted)) $this->isCountryRestricted = true; if(!empty($xml->isSessionRestricted)) $this->isSessionRestricted = true; if(!empty($xml->isIpAddressRestricted)) $this->isIpAddressRestricted = true; if(!empty($xml->isUserAgentRestricted)) $this->isUserAgentRestricted = true; if(count($xml->previewLength)) $this->previewLength = (int)$xml->previewLength; if(!empty($xml->isScheduledNow)) $this->isScheduledNow = true; if(!empty($xml->isAdmin)) $this->isAdmin = true; $this->streamerType = (string)$xml->streamerType; $this->mediaProtocol = (string)$xml->mediaProtocol; $this->storageProfilesXML = (string)$xml->storageProfilesXML; if(empty($xml->accessControlMessages)) $this->accessControlMessages = array(); else $this->accessControlMessages = Kaltura_Client_Client::unmarshalItem($xml->accessControlMessages); if(empty($xml->accessControlActions)) $this->accessControlActions = array(); else $this->accessControlActions = Kaltura_Client_Client::unmarshalItem($xml->accessControlActions); if(empty($xml->flavorAssets)) $this->flavorAssets = array(); else $this->flavorAssets = Kaltura_Client_Client::unmarshalItem($xml->flavorAssets); } /** * * * @var bool */ public $isSiteRestricted = null; /** * * * @var bool */ public $isCountryRestricted = null; /** * * * @var bool */ public $isSessionRestricted = null; /** * * * @var bool */ public $isIpAddressRestricted = null; /** * * * @var bool */ public $isUserAgentRestricted = null; /** * * * @var int */ public $previewLength = null; /** * * * @var bool */ public $isScheduledNow = null; /** * * * @var bool */ public $isAdmin = null; /** * http/rtmp/hdnetwork * * * @var string */ public $streamerType = null; /** * http/https, rtmp/rtmpe * * * @var string */ public $mediaProtocol = null; /** * * * @var string */ public $storageProfilesXML = null; /** * Array of messages as received from the access control rules that invalidated * * * @var array of KalturaString */ public $accessControlMessages; /** * Array of actions as received from the access control rules that invalidated * * * @var array of KalturaAccessControlAction */ public $accessControlActions; /** * Array of allowed flavor assets according to access control limitations and requested tags * * * @var array of KalturaFlavorAsset */ public $flavorAssets; }