public static function humanize($sql)
{
return preg_replace_callback('/(\\w+)\\.(\\w+) AS (_\\w+)(, )?/', new SelectColumnCallback(), $sql);
}
private function __construct($dbHandle, $sql, $boundValues, $pdoExecutor) { $this->_boundValues = $boundValues; $this->_dbHandle = $dbHandle; $this->_sql = $sql; $this->_humanizedSql = QueryHumanizer::humanize($sql); $this->_pdoExecutor = $pdoExecutor; }