/**
  * Retrieve multiple objects by pkey.
  *
  * @param      array $pks List of primary keys
  * @param      PropelPDO $con the connection to use
  * @throws     PropelException Any exceptions caught during processing will be
  *		 rethrown wrapped into a PropelException.
  */
 public static function retrieveByPKs($pks, PropelPDO $con = null)
 {
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(ScheduledTaskProfilePeer::DATABASE_NAME);
         $criteria->add(ScheduledTaskProfilePeer::ID, $pks, Criteria::IN);
         $objs = ScheduledTaskProfilePeer::doSelect($criteria, $con);
     }
     return $objs;
 }
 /**
  * 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;
 }