Exemplo n.º 1
0
 /**
  * Class constructor
  *
  * @param Zend_Db_Adapter $db   Database adapter instance
  * @param Zend_Db_Table $table 
  * @param array $columnMap
  * @return void
  */
 public function __construct($db, Zend_Db_Table $table, $columnMap = null)
 {
     $info = $table->info();
     parent::__construct($db, $info['schema'] . '.' . $info['name'], $columnMap);
     $this->_db = $db;
     $this->_table = $table;
     $this->_columnMap = $columnMap;
 }
Exemplo n.º 2
0
 /**
  * Class constructor
  *
  * @param string $filename Filename
  */
 public function __construct($filename)
 {
     $resource = Mage::getSingleton('core/resource');
     $this->_db = $resource->getConnection('core_write');
     $this->_table = $resource->getTableName('firegento_logger/db_entry');
     $this->_columnMap = array('severity' => 'priority', 'message' => 'message');
     parent::__construct($this->_db, $this->_table, $this->_columnMap);
 }
Exemplo n.º 3
0
 /**
  * Class constructor
  *
  * @param array $params   
  * @return void
  */
 public function __construct($params)
 {
     $db = $params['db'];
     $table = $params['table'];
     $columnMap = $params['columnMap'];
     $max_rows = $params['max_rows'];
     $this->_max_rows = (int) $max_rows;
     $this->_db = $db;
     $this->_table = $table;
     parent::__construct($db, $table, $columnMap);
 }
Exemplo n.º 4
0
 public function __construct($db, $table)
 {
     $columnMap = array('message' => 'message', 'priority' => 'priority', 'priority_name' => 'priorityName', 'created_at' => 'timestamp', 'ip_client' => 'ip_client', 'id_branch' => 'id_branch', 'ip_host' => 'ip_host', 'created_by' => 'created_by', 'request_headers' => 'request_headers', 'url' => 'url', 'request_parameters' => 'request_parameters', 'hierarchy' => 'hierarchy', 'line' => 'line', 'file' => 'file', 'xdebug_message' => 'xdebug_message', 'module' => 'module', 'controller' => 'controller', 'action' => 'action', 'request_hash' => 'request_hash');
     parent::__construct($db, $table, $columnMap);
 }