/** * @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); }
public static function retriveByName($name, $approved = null, Criteria $c = null) { if ($c == null) { $c = new Criteria(); } $c->add(TagPeer::NAME, $name); if (isset($approved)) { $c->add(TagPeer::APPROVED, $approved); } return parent::doSelectOne($c); }
public static function getPhpNameMap() { if (self::$phpNameMap === null) { $map = TagPeer::getTableMap(); $columns = $map->getColumns(); $nameMap = array(); foreach ($columns as $column) { $nameMap[$column->getPhpName()] = $column->getColumnName(); } self::$phpNameMap = $nameMap; } return self::$phpNameMap; }
public static function setRightsUser($oUser = false) { self::$RIGHTS_USER = $oUser; }
/** * Clear the instance pool. * * @return void */ public static function clearInstancePool() { foreach (self::$instances as $instance) { $instance->clearAllReferences(false); } self::$instances = array(); }
/** * Clear the instance pool. * * @return void */ public static function clearInstancePool() { self::$instances = array(); }