. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_AccessControlScope extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaAccessControlScope'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; $this->referrer = (string)$xml->referrer; $this->ip = (string)$xml->ip; $this->ks = (string)$xml->ks; $this->userAgent = (string)$xml->userAgent; if(count($xml->time)) $this->time = (int)$xml->time; if(empty($xml->contexts)) $this->contexts = array(); else $this->contexts = Kaltura_Client_Client::unmarshalItem($xml->contexts); if(empty($xml->hashes)) $this->hashes = array(); else $this->hashes = Kaltura_Client_Client::unmarshalItem($xml->hashes); } /** * URL to be used to test domain conditions. * * * @var string */ public $referrer = null; /** * IP to be used to test geographic location conditions. * * * @var string */ public $ip = null; /** * Kaltura session to be used to test session and user conditions. * * * @var string */ public $ks = null; /** * Browser or client application to be used to test agent conditions. * * * @var string */ public $userAgent = null; /** * Unix timestamp (In seconds) to be used to test entry scheduling, keep null to use now. * * * @var int */ public $time = null; /** * Indicates what contexts should be tested. No contexts means any context. * * * @var array of KalturaAccessControlContextTypeHolder */ public $contexts; /** * Array of hashes to pass to the access control profile scope * * * @var array of KalturaKeyValue */ public $hashes; }