Skip to content

Instantly share code, notes, and snippets.

@nitriques
nitriques / class.wordpresssql.php
Created March 14, 2014 13:58
Wordpress Data source for Symphony CMS
<?php
Abstract Class WordpressSqlDatasource extends Datasource {
public $dsParamREDIRECTONEMPTY = 'no';
public function __construct($env=NULL, $process_params=true){
parent::__construct($env, $process_params);
$this->_dependencies = array();
@brendo
brendo / class.mysql.php
Last active December 16, 2015 13:19
Improved Symphony MySQL Driver - Uses `mysqli` instead of `mysql`. - Supports a `master`, `slave` setup where the master accepts all writes, and the slaves processes reads To use, add an additional section to your config, `database_slave` which has the same details as `database`.
<?php
/**
* @package toolkit
*/
/**
* The DatabaseException class extends a normal Exception to add in
* debugging information when a SQL query fails such as the internal
* database error code and message in additional to the usual