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

        if ( empty( $parameters ) )
        {
            return self::$_statement->execute();
        }

        return self::$_statement->execute( $parameters );
    }
public static function execute( $sql, $parameters = null, $connection = null, $fetchMode = \PDO::FETCH_ASSOC )
    {
        self::$_statement = self::createStatement( $sql, $connection, $fetchMode );

        if ( empty( $parameters ) )
        {
            return self::$_statement->execute();
        }

        return self::$_statement->execute( $parameters );
    }
public static function execute ( $ sql , $ parameters = null , $ connection = null , $ fetchMode = \ PDO :: FETCH_ASSOC ) { self :: $ _statement = self :: createStatement ( $ sql , $ connection , $ fetchMode ) ; if ( empty ( $ parameters ) ) { return self :: $ _statement -> execute ( ) ; } return self :: $ _statement -> execute ( $ parameters ) ; }
Executes a SQL statement

@param string $sql
@param array  $parameters
@param \PDO   $connection
@param int    $fetchMode

@return int The number of affected rows
Executes a SQL statement