/**
  * Class constructor
  * Add straight join support
  *
  * @param Zend_Db_Adapter_Abstract $adapter
  */
 public function __construct(Zend_Db_Adapter_Abstract $adapter)
 {
     if (!isset(self::$_partsInit[self::STRAIGHT_JOIN])) {
         self::$_partsInit = array(self::STRAIGHT_JOIN => false) + self::$_partsInit;
     }
     parent::__construct($adapter);
 }
Esempio n. 2
0
 /**
  * Class constructor
  *
  * @param Zend_Db_Adapter_Abstract $adapter
  */
 public function __construct(Zend_Db_Adapter_Abstract $adapter)
 {
     parent::__construct($adapter);
     if (!in_array(self::STRAIGHT_JOIN_ON, self::$_joinTypes)) {
         self::$_joinTypes[] = self::STRAIGHT_JOIN_ON;
         self::$_partsInit = array(self::STRAIGHT_JOIN => false) + self::$_partsInit;
     }
 }