library/database/class.mysqlstructure.php
public function View($Name, $SQL) {
      if(is_string($SQL)) {
         $SQLString = $SQL;
         $SQL = NULL;
      } else {
         $SQLString = $SQL->GetSelect();
      }
      
      $Result = $this->Query('create or replace view '.$this->_DatabasePrefix.$Name." as \n".$SQLString);
      if(!is_null($SQL)) {
         $SQL->Reset();
      }
   }
public function View($Name, $SQL) {
      if(is_string($SQL)) {
         $SQLString = $SQL;
         $SQL = NULL;
      } else {
         $SQLString = $SQL->GetSelect();
      }
      
      $Result = $this->Query('create or replace view '.$this->_DatabasePrefix.$Name." as \n".$SQLString);
      if(!is_null($SQL)) {
         $SQL->Reset();
      }
   }
public function View ( $ Name , $ SQL ) { if ( is_string ( $ SQL ) ) { $ SQLString = $ SQL ; $ SQL = NULL ; } else { $ SQLString = $ SQL -> GetSelect ( ) ; } $ Result = $ this -> Query ( 'create or replace view ' . $ this -> _DatabasePrefix . $ Name . " as \n" . $ SQLString ) ; if ( ! is_null ( $ SQL ) ) { $ SQL -> Reset ( ) ; } }
Specifies the name of the view to create or modify.

@param string $Name The name of the view.
@param string $Query The actual query to create as the view. Typically
this can be generated with the $Database object.
Specifies the name of the view to create or modify .