. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_AccessControlProfile extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaAccessControlProfile'; } 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->updatedAt)) $this->updatedAt = (int)$xml->updatedAt; if(count($xml->isDefault)) $this->isDefault = (int)$xml->isDefault; if(empty($xml->rules)) $this->rules = array(); else $this->rules = Kaltura_Client_Client::unmarshalItem($xml->rules); } /** * 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 time as Unix timestamp (In seconds) * * * @var int * @readonly */ public $createdAt = null; /** * Update time as Unix timestamp (In seconds) * * * @var int * @readonly */ public $updatedAt = null; /** * True if this access control profile is the partner default * * * @var Kaltura_Client_Enum_NullableBoolean */ public $isDefault = null; /** * Array of access control rules * * * @var array of KalturaRule */ public $rules; }