Example #1
0
 public static function retrieveByPK($pk, PropelPDO $con = null, $join = null)
 {
     if ($join == null) {
         return parent::retrieveByPK($pk, $con);
     }
     $c = new Criteria();
     $c->add(self::ID, $pk);
     $c->setLimit(1);
     // TODO - support all joins -
     // for now supporting only kshow,entry,kshow+entry and all
     if ($join == self::WIDGET_PEER_JOIN_KSHOW) {
         $res = self::doSelectJoinkshow($c, $con);
     } elseif ($join == self::WIDGET_PEER_JOIN_ENTRY) {
         $res = self::doSelectJoinentry($c, $con);
     } elseif ($join == self::WIDGET_PEER_JOIN_ENTRY + self::WIDGET_PEER_JOIN_KSHOW) {
         $res = self::doSelectJoinAllExceptuiConf($c, $con);
     } elseif ($join == self::WIDGET_PEER_JOIN_ALL) {
         $res = self::doSelectJoinAllExceptuiConf($c, $con);
     } else {
         throw new Exception("still NEED to implement join type [{$join}]");
     }
     return $res;
 }
Example #2
0
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     foreach (self::$instances as $instance) {
         $instance->clearAllReferences(false);
     }
     self::$instances = array();
 }
Example #3
0
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     self::$instances = array();
 }