Beispiel #1
0
 public static function lists_search(&$c, &$pager)
 {
     self::getSearchParams($context, $user, $request, $keys, $stype);
     $pager = "Lists";
     $c->add(ListsPeer::LABEL, $keys, Criteria::LIKE);
     $res = ListsPeer::doSelect($c);
     $c = new Criteria();
     $c->add(ListitemI18nPeer::LABEL, keys, Criteria::LIKE);
     $res2 = ListitemI18nPeer::doSelect($c);
     $c = new Criteria();
     $c->add(ListitemPeer::LABEL, $keys, Criteria::LIKE);
     $res3 = ListitemPeer::doSelect($c);
     $c = array_merge($res, array_merge($res2, $res3));
 }
Beispiel #2
0
 public static function retrieveByPKs($pks, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria();
         $criteria->add(ListitemPeer::ID, $pks, Criteria::IN);
         $objs = ListitemPeer::doSelect($criteria, $con);
     }
     return $objs;
 }