Example #1
0
 /**
  * count cue point objects by filter
  * 
  * @action count
  * @param KalturaCuePointFilter $filter
  * @return int
  */
 function countAction(KalturaCuePointFilter $filter = null)
 {
     if (!$filter) {
         $filter = new KalturaCuePointFilter();
     }
     $c = KalturaCriteria::create(CuePointPeer::OM_CLASS);
     if ($this->getCuePointType()) {
         $c->add(CuePointPeer::TYPE, $this->getCuePointType());
     }
     $cuePointFilter = $filter->toObject();
     $cuePointFilter->attachToCriteria($c);
     $c->applyFilters();
     return $c->getRecordsCount();
 }
 public function getOrderByMap()
 {
     return array_merge(parent::getOrderByMap(), $this->order_by_map);
 }
 function count(KalturaCuePointFilter $filter = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     $this->client->queueServiceActionCall("cuepoint_cuepoint", "count", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "integer");
     return $resultObject;
 }
 public function getOrderByMap()
 {
     return array_merge(parent::getOrderByMap(), self::$order_by_map);
 }