Fire/Sql/Statement.php
static public function get($sqlStatement, $variables = [])
    {
        if (!is_array(self::$_statements)) {
            self::init();
        }
        $sql = self::$_statements[$sqlStatement];
        if ($variables) {
            foreach ($variables as $variable => $value) {
                $sql = str_replace($variable, $value, $sql);
            }
        }
        return $sql;
    }
static public function get($sqlStatement, $variables = [])
    {
        if (!is_array(self::$_statements)) {
            self::init();
        }
        $sql = self::$_statements[$sqlStatement];
        if ($variables) {
            foreach ($variables as $variable => $value) {
                $sql = str_replace($variable, $value, $sql);
            }
        }
        return $sql;
    }
static public function get ( $ sqlStatement , $ variables = [ ] ) { if ( ! is_array ( self :: $ _statements ) ) { self :: init ( ) ; } $ sql = self :: $ _statements [ $ sqlStatement ] ; if ( $ variables ) { foreach ( $ variables as $ variable => $ value ) { $ sql = str_replace ( $ variable , $ value , $ sql ) ; } } return $ sql ; }
This method is responsible for returning the associated SQL statement
that has been prepared with the proper variables.
@param string $sqlStatement The key associated with the SQL statement you want to return
@param array $variables An array of variables
@return string
This method is responsible for returning the associated SQL statement that has been prepared with the proper variables .