public function createStandInTable($viewName)
    {
        $ret = array();
        foreach ($this->tableColumnTypes[$viewName] as $k => $v) {
            $ret[] = "`${k}` ${v['type_sql']}";
        }
        $ret = implode(PHP_EOL.",", $ret);

        $ret = "CREATE TABLE IF NOT EXISTS `$viewName` (".
            PHP_EOL.$ret.PHP_EOL.");".PHP_EOL;

        return $ret;
    }
public function createStandInTable($viewName)
    {
        $ret = array();
        foreach ($this->tableColumnTypes[$viewName] as $k => $v) {
            $ret[] = "`${k}` ${v['type_sql']}";
        }
        $ret = implode(PHP_EOL.",", $ret);

        $ret = "CREATE TABLE IF NOT EXISTS `$viewName` (".
            PHP_EOL.$ret.PHP_EOL.");".PHP_EOL;

        return $ret;
    }
public function createStandInTable ( $ viewName ) { $ ret = array ( ) ; foreach ( $ this -> tableColumnTypes [ $ viewName ] as $ k => $ v ) { $ ret [ ] = "`${k}` ${v['type_sql']}" ; } $ ret = implode ( PHP_EOL . "," , $ ret ) ; $ ret = "CREATE TABLE IF NOT EXISTS `$viewName` (" . PHP_EOL . $ ret . PHP_EOL . ");" . PHP_EOL ; return $ ret ; }
Write a create table statement for the table Stand-In, show create
table would return a create algorithm when used on a view

@param string $viewName  Name of view to export
@return string create statement
Write a create table statement for the table Stand - In show create table would return a create algorithm when used on a view