Пример #1
0
 /**
  * Create a Zend_Db_Adapter_Abstract
  *
  * @param array $options
  * @return Zend_Db_Adapter_Abstract
  */
 public static function Create()
 {
     if (!self::$_adapter) {
         self::$_adapter = self::_createAdapter();
     }
     return self::$_adapter;
 }
Пример #2
0
 public static function Quote($value, $type = null)
 {
     $adapter = WeFlex_Db_Adapter_Creator::Create();
     return $adapter->quote($value, $type);
 }
Пример #3
0
 function __construct()
 {
     $this->_adapter = WeFlex_Db_Adapter_Creator::Create();
     $this->_selector = $this->_adapter->select();
     $this->_initSelector();
 }