. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_AccessControl extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaAccessControl'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; if(count($xml->id)) $this->id = (int)$xml->id; if(count($xml->partnerId)) $this->partnerId = (int)$xml->partnerId; $this->name = (string)$xml->name; $this->systemName = (string)$xml->systemName; $this->description = (string)$xml->description; if(count($xml->createdAt)) $this->createdAt = (int)$xml->createdAt; if(count($xml->isDefault)) $this->isDefault = (int)$xml->isDefault; if(empty($xml->restrictions)) $this->restrictions = array(); else $this->restrictions = Kaltura_Client_Client::unmarshalItem($xml->restrictions); if(!empty($xml->containsUnsuportedRestrictions)) $this->containsUnsuportedRestrictions = true; } /** * The id of the Access Control Profile * * * @var int * @readonly */ public $id = null; /** * * * @var int * @readonly */ public $partnerId = null; /** * The name of the Access Control Profile * * * @var string */ public $name = null; /** * System name of the Access Control Profile * * * @var string */ public $systemName = null; /** * The description of the Access Control Profile * * * @var string */ public $description = null; /** * Creation date as Unix timestamp (In seconds) * * * @var int * @readonly */ public $createdAt = null; /** * True if this Conversion Profile is the default * * * @var Kaltura_Client_Enum_NullableBoolean */ public $isDefault = null; /** * Array of Access Control Restrictions * * * @var array of KalturaBaseRestriction */ public $restrictions; /** * Indicates that the access control profile is new and should be handled using KalturaAccessControlProfile object and accessControlProfile service * * * @var bool * @readonly */ public $containsUnsuportedRestrictions = null; }