You are here

function KalturaStatsService::collect in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 5158

Class

KalturaStatsService

Code

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;
}