コード例 #1
0
 /**
  * List scheduled task profiles
  *
  * @action list
  * @param KalturaScheduledTaskProfileFilter $filter
  * @param KalturaFilterPager $pager
  * @return KalturaScheduledTaskProfileListResponse
  */
 public function listAction(KalturaScheduledTaskProfileFilter $filter = null, KalturaFilterPager $pager = null)
 {
     if (!$filter) {
         $filter = new KalturaScheduledTaskProfileFilter();
     }
     if (!$pager) {
         $pager = new KalturaFilterPager();
     }
     $scheduledTaskFilter = new ScheduledTaskProfileFilter();
     $filter->toObject($scheduledTaskFilter);
     $c = new Criteria();
     $scheduledTaskFilter->attachToCriteria($c);
     $count = ScheduledTaskProfilePeer::doCount($c);
     $pager->attachToCriteria($c);
     $list = ScheduledTaskProfilePeer::doSelect($c);
     $response = new KalturaScheduledTaskProfileListResponse();
     $response->objects = KalturaScheduledTaskProfileArray::fromDbArray($list, $this->getResponseProfile());
     $response->totalCount = $count;
     return $response;
 }
 /**
  * List scheduled task profiles
  * 
  * @param KalturaScheduledTaskProfileFilter $filter 
  * @param KalturaFilterPager $pager 
  * @return KalturaScheduledTaskProfileListResponse
  */
 function listAction(KalturaScheduledTaskProfileFilter $filter = null, KalturaFilterPager $pager = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->queueServiceActionCall("scheduledtask_scheduledtaskprofile", "list", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaScheduledTaskProfileListResponse");
     return $resultObject;
 }