Login   Register  
PHP Classes
elePHPant
Icontem

File: Sql_Compiler/Sql_CompilerReplace.class.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  SQL Parse and Compile  >  Sql_Compiler/Sql_CompilerReplace.class.php  >  Download  
File: Sql_Compiler/Sql_CompilerReplace.class.php
Role: Class source
Content type: text/plain
Description: compile replace statement
Class: SQL Parse and Compile
Parse and compose SQL queries programatically
Author: By
Last change:
Date: 6 years ago
Size: 780 bytes
 

Contents

Class file image Download
<?php

/**
 *
 * Sql_CompilerReplace
 * @package Sql_Compiler
 * @author Thomas Schäfer
 * @since 03.12.2008 07:49:30
 * @desc compiles sql replace statements into string
 */
/**
 *
 * Sql_CompilerReplace
 * @package Sql_Compiler
 * @author Thomas Schäfer
 * @since 03.12.2008 07:49:30
 * @desc compiles sql replace statements into string
 */
class Sql_CompilerReplace extends Sql_CompilerInsert
{

    
/**
     * compile insert
     *     
     * @desc facade build an replace statement string
     * @access private
     * @param string $type
     * @return string
     */
    
public static function doCompile() 
    {
        return 
parent::doCompile("replace");
    }
    
    public function 
compile$tree )
    {
        
Sql_Object::set("tree"$tree);
        return 
self::doCompile();
    }

}