public static function retrieveByDropFolderIdAndStatus($dropFolderId, $status)
 {
     $c = new Criteria();
     $c->addAnd(DropFolderFilePeer::DROP_FOLDER_ID, $dropFolderId, Criteria::EQUAL);
     $c->addAnd(DropFolderFilePeer::STATUS, $status, Criteria::EQUAL);
     $dropFolderFiles = DropFolderFilePeer::doSelect($c);
     return $dropFolderFiles;
 }
Exemplo n.º 2
0
 public static function retrieveByEntryIdPartnerIdAndStatuses($entryId, $partnerId, $statuses)
 {
     $c = new Criteria();
     $c->addAnd(DropFolderFilePeer::ENTRY_ID, $entryId, Criteria::EQUAL);
     $c->addAnd(DropFolderFilePeer::PARTNER_ID, $partnerId, Criteria::EQUAL);
     $c->addAnd(DropFolderFilePeer::STATUS, $statuses, Criteria::IN);
     $dropFolderFiles = DropFolderFilePeer::doSelect($c);
     return $dropFolderFiles;
 }
 /**
  * List KalturaDropFolderFile objects
  * 
  * @action list
  * @param KalturaDropFolderFileFilter $filter
  * @param KalturaFilterPager $pager
  * @return KalturaDropFolderFileListResponse
  */
 public function listAction(KalturaDropFolderFileFilter $filter = null, KalturaFilterPager $pager = null)
 {
     if (!$filter) {
         $filter = new KalturaDropFolderFileFilter();
     }
     $dropFolderFileFilter = $filter->toObject();
     $c = new Criteria();
     $dropFolderFileFilter->attachToCriteria($c);
     $count = DropFolderFilePeer::doCount($c);
     if (!$pager) {
         $pager = new KalturaFilterPager();
     }
     $pager->attachToCriteria($c);
     $list = DropFolderFilePeer::doSelect($c);
     $response = new KalturaDropFolderFileListResponse();
     $response->objects = KalturaDropFolderFileArray::fromDbArray($list);
     $response->totalCount = $count;
     return $response;
 }
 /**
  * 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(DropFolderFilePeer::DATABASE_NAME);
         $criteria->add(DropFolderFilePeer::ID, $pks, Criteria::IN);
         $objs = DropFolderFilePeer::doSelect($criteria, $con);
     }
     return $objs;
 }