You are here

class KalturaStatsService in Kaltura 6.2

Hierarchy

Expanded class hierarchy of KalturaStatsService

File

kaltura_client/KalturaClient.php, line 5151

View source
class KalturaStatsService extends KalturaServiceBase {
  function __construct(KalturaClient $client) {
    parent::__construct($client);
  }
  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;
  }
  function reportKceError(KalturaCEError $kalturaCEError) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "kalturaCEError", $kalturaCEError
      ->toParams());
    $this->client
      ->queueServiceActionCall("stats", "reportKceError", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaCEError");
    return $resultObject;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
KalturaServiceBase::$client protected property *
KalturaStatsService::collect function
KalturaStatsService::reportKceError function
KalturaStatsService::__construct function * Initialize the service keeping reference to the KalturaClient * * Overrides KalturaServiceBase::__construct