Ouzo\Db\QueryHumanizer::humanize PHP Method

humanize() public static method

public static humanize ( $sql )
    public static function humanize($sql)
    {
        return preg_replace_callback('/(\\w+)\\.(\\w+) AS (_\\w+)(, )?/', new SelectColumnCallback(), $sql);
    }

Usage Example

Ejemplo n.º 1
0
 private function __construct($dbHandle, $sql, $boundValues, $pdoExecutor)
 {
     $this->_boundValues = $boundValues;
     $this->_dbHandle = $dbHandle;
     $this->_sql = $sql;
     $this->_humanizedSql = QueryHumanizer::humanize($sql);
     $this->_pdoExecutor = $pdoExecutor;
 }
All Usage Examples Of Ouzo\Db\QueryHumanizer::humanize
QueryHumanizer