public function __construct($args = array()) { parent::__construct($args); if (!isset($this->db)) { global $db; $this->db = $db; } }
public function __construct($args = array()) { parent::__construct($args); if (!isset($this->config['batch_size'])) { $this->config['batch_size'] = $this->batch_size; } $this->client = new Solarium_Client(array('adapteroptions' => $this->config)); }