. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_ModerationFlag extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaModerationFlag'; } 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->userId = (string)$xml->userId; $this->moderationObjectType = (string)$xml->moderationObjectType; $this->flaggedEntryId = (string)$xml->flaggedEntryId; $this->flaggedUserId = (string)$xml->flaggedUserId; $this->status = (string)$xml->status; $this->comments = (string)$xml->comments; if(count($xml->flagType)) $this->flagType = (int)$xml->flagType; if(count($xml->createdAt)) $this->createdAt = (int)$xml->createdAt; if(count($xml->updatedAt)) $this->updatedAt = (int)$xml->updatedAt; } /** * Moderation flag id * * * @var int * @readonly */ public $id = null; /** * * * @var int * @readonly */ public $partnerId = null; /** * The user id that added the moderation flag * * * @var string * @readonly */ public $userId = null; /** * The type of the moderation flag (entry or user) * * * @var Kaltura_Client_Enum_ModerationObjectType * @readonly */ public $moderationObjectType = null; /** * If moderation flag is set for entry, this is the flagged entry id * * * @var string */ public $flaggedEntryId = null; /** * If moderation flag is set for user, this is the flagged user id * * * @var string */ public $flaggedUserId = null; /** * The moderation flag status * * * @var Kaltura_Client_Enum_ModerationFlagStatus * @readonly */ public $status = null; /** * The comment that was added to the flag * * * @var string */ public $comments = null; /** * * * @var Kaltura_Client_Enum_ModerationFlagType */ public $flagType = null; /** * * * @var int * @readonly */ public $createdAt = null; /** * * * @var int * @readonly */ public $updatedAt = null; }