. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_Permission extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaPermission'; } 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->type)) $this->type = (int)$xml->type; $this->name = (string)$xml->name; $this->friendlyName = (string)$xml->friendlyName; $this->description = (string)$xml->description; if(count($xml->status)) $this->status = (int)$xml->status; if(count($xml->partnerId)) $this->partnerId = (int)$xml->partnerId; $this->dependsOnPermissionNames = (string)$xml->dependsOnPermissionNames; $this->tags = (string)$xml->tags; $this->permissionItemsIds = (string)$xml->permissionItemsIds; if(count($xml->createdAt)) $this->createdAt = (int)$xml->createdAt; if(count($xml->updatedAt)) $this->updatedAt = (int)$xml->updatedAt; $this->partnerGroup = (string)$xml->partnerGroup; } /** * * * @var int * @readonly */ public $id = null; /** * * * @var Kaltura_Client_Enum_PermissionType * @readonly */ public $type = null; /** * * * @var string */ public $name = null; /** * * * @var string */ public $friendlyName = null; /** * * * @var string */ public $description = null; /** * * * @var Kaltura_Client_Enum_PermissionStatus */ public $status = null; /** * * * @var int * @readonly */ public $partnerId = null; /** * * * @var string */ public $dependsOnPermissionNames = null; /** * * * @var string */ public $tags = null; /** * * * @var string */ public $permissionItemsIds = null; /** * * * @var int * @readonly */ public $createdAt = null; /** * * * @var int * @readonly */ public $updatedAt = null; /** * * * @var string */ public $partnerGroup = null; }