Beispiel #1
0
 /**
  * @param Criteria $criteria
  * @param PropelPDO $con
  */
 public static function doSelect(Criteria $criteria, PropelPDO $con = null)
 {
     $c = clone $criteria;
     if ($c instanceof KalturaCriteria) {
         $c->applyFilters();
         $criteria->setRecordsCount($c->getRecordsCount());
     }
     return parent::doSelect($c, $con);
 }
Beispiel #2
0
 public static function getApproved(Criteria $c = null)
 {
     if ($c == null) {
         $c = new Criteria();
     }
     $c->add(TagPeer::APPROVED, true);
     $tags = parent::doSelect($c);
     $ret = array();
     foreach ($tags as $tag) {
         $ret[] = $tag->getName();
     }
     return $ret;
 }