. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_StatsEvent extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaStatsEvent'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; $this->clientVer = (string)$xml->clientVer; if(count($xml->eventType)) $this->eventType = (int)$xml->eventType; if(count($xml->eventTimestamp)) $this->eventTimestamp = (float)$xml->eventTimestamp; $this->sessionId = (string)$xml->sessionId; if(count($xml->partnerId)) $this->partnerId = (int)$xml->partnerId; $this->entryId = (string)$xml->entryId; $this->uniqueViewer = (string)$xml->uniqueViewer; $this->widgetId = (string)$xml->widgetId; if(count($xml->uiconfId)) $this->uiconfId = (int)$xml->uiconfId; $this->userId = (string)$xml->userId; if(count($xml->currentPoint)) $this->currentPoint = (int)$xml->currentPoint; if(count($xml->duration)) $this->duration = (int)$xml->duration; $this->userIp = (string)$xml->userIp; if(count($xml->processDuration)) $this->processDuration = (int)$xml->processDuration; $this->controlId = (string)$xml->controlId; if(!empty($xml->seek)) $this->seek = true; if(count($xml->newPoint)) $this->newPoint = (int)$xml->newPoint; $this->referrer = (string)$xml->referrer; if(!empty($xml->isFirstInSession)) $this->isFirstInSession = true; $this->applicationId = (string)$xml->applicationId; if(count($xml->contextId)) $this->contextId = (int)$xml->contextId; if(count($xml->featureType)) $this->featureType = (int)$xml->featureType; } /** * * * @var string */ public $clientVer = null; /** * * * @var Kaltura_Client_Enum_StatsEventType */ public $eventType = null; /** * the client's timestamp of this event * * * @var float */ public $eventTimestamp = null; /** * a unique string generated by the client that will represent the client-side session: the primary component will pass it on to other components that sprout from it * * * @var string */ public $sessionId = null; /** * * * @var int */ public $partnerId = null; /** * * * @var string */ public $entryId = null; /** * the UV cookie - creates in the operational system and should be passed on ofr every event * * * @var string */ public $uniqueViewer = null; /** * * * @var string */ public $widgetId = null; /** * * * @var int */ public $uiconfId = null; /** * the partner's user id * * * @var string */ public $userId = null; /** * the timestamp along the video when the event happend * * * @var int */ public $currentPoint = null; /** * the duration of the video in milliseconds - will make it much faster than quering the db for each entry * * * @var int */ public $duration = null; /** * will be retrieved from the request of the user * * * @var string * @readonly */ public $userIp = null; /** * the time in milliseconds the event took * * * @var int */ public $processDuration = null; /** * the id of the GUI control - will be used in the future to better understand what the user clicked * * * @var string */ public $controlId = null; /** * true if the user ever used seek in this session * * * @var bool */ public $seek = null; /** * timestamp of the new point on the timeline of the video after the user seeks * * * @var int */ public $newPoint = null; /** * the referrer of the client * * * @var string */ public $referrer = null; /** * will indicate if the event is thrown for the first video in the session * * * @var bool */ public $isFirstInSession = null; /** * kaltura application name * * * @var string */ public $applicationId = null; /** * * * @var int */ public $contextId = null; /** * * * @var Kaltura_Client_Enum_StatsFeatureType */ public $featureType = null; }