function collect(KalturaStatsEvent $event)
 {
     $kparams = array();
     $this->client->addParam($kparams, "event", $event->toParams());
     $this->client->queueServiceActionCall("stats", "collect", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "null");
     return $resultObject;
 }
Пример #2
0
 /**
 * Will write to the event log a single line representing the event
 client version - will help interprete the line structure. different client versions might have slightly different data/data formats in the line
 event_id - number is the row number in yuval's excel
 datetime - same format as MySql's datetime - can change and should reflect the time zone
 session id - can be some big random number or guid
 partner id
 entry id
 unique viewer
 widget id
 ui_conf id
 uid - the puser id as set by the ppartner
 current point - in milliseconds
 duration - milliseconds
 user ip
 process duration - in milliseconds
 control id
 seek
 new point
 referrer
 	
 	
 KalturaStatsEvent $event
 * 
 * @param KalturaStatsEvent $event 
 * @return bool
 */
 function collect(KalturaStatsEvent $event)
 {
     $kparams = array();
     $this->client->addParam($kparams, "event", $event->toParams());
     $this->client->queueServiceActionCall("stats", "collect", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $resultObject = (bool) $resultObject;
     return $resultObject;
 }