src/Kisma/Core/Utility/Sql.php
public static function createStatement( $sql, &$connection = null, $fetchMode = \PDO::FETCH_ASSOC )
    {
        $_db = self::_checkConnection( $connection );

        /** @var $_statement \PDOStatement */
        $_statement = $_db->prepare( $sql );

        if ( false !== $fetchMode )
        {
            $_statement->setFetchMode( $fetchMode );
        }

        return $_statement;
    }
public static function createStatement( $sql, &$connection = null, $fetchMode = \PDO::FETCH_ASSOC )
    {
        $_db = self::_checkConnection( $connection );

        /** @var $_statement \PDOStatement */
        $_statement = $_db->prepare( $sql );

        if ( false !== $fetchMode )
        {
            $_statement->setFetchMode( $fetchMode );
        }

        return $_statement;
    }
public static function createStatement ( $ sql , & $ connection = null , $ fetchMode = \ PDO :: FETCH_ASSOC ) { $ _db = self :: _checkConnection ( $ connection ) ; /** @var $_statement \PDOStatement */ $ _statement = $ _db -> prepare ( $ sql ) ; if ( false !== $ fetchMode ) { $ _statement -> setFetchMode ( $ fetchMode ) ; } return $ _statement ; }
Creates and returns an optionally parameter-bound \PDOStatement object

@param string $sql
@param \PDO   $connection
@param int    $fetchMode Set to false to not touch fetch mode

@return \PDOStatement
Creates and returns an optionally parameter - bound \ PDOStatement object