PHP Classes

File: Xyndravandria/Dyverath/Query/Component/Statement/StatementListing/InsertIntoStatement.php

Recommend this page to a friend!
  Classes of Mauro Di Girolamo   Xyndravandria Dyverath   Xyndravandria/Dyverath/Query/Component/Statement/StatementListing/InsertIntoStatement.php   Download  
File: Xyndravandria/Dyverath/Query/Component/Statement/StatementListing/InsertIntoStatement.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Xyndravandria Dyverath
Compose and execute MySQL database queries
Author: By
Last change:
Date: 10 years ago
Size: 4,166 bytes
 

Contents

Class file image Download
<?php
/*
=============================================================================================================================================
| This file is part of a project released under the terms of the Xyndravandria PHP License (XyndravandriaPHPLicense.txt). |
| |
| You should be given a copy of the Xyndravandria PHP License (XyndravandriaPHPLicense.txt) within the same directory as the README.md; |
| if not, you can get a copy at http://Xyndravandria.ohost.de/XyndravandriaPHPLicense.txt . |
| |
| The copyright (c) of this project is owned by Mauro Di Girolamo <maurodigirolamo@.web.de>. |
============================================================================================================================================|



Xyndravandria Dyverath
----------------------
Alpha 0.0.0

Xyndravandria is the name of a collection of projects designed and developed by Mauro Di Girolamo (maurodigirolamo@web.de); he is therefore the copyright (c) owner of Xyndravandria itself and all of its projects.

Xyndravandria Dyverath is released under the terms of the Xyndravandria PHP License (XyndravandriaPHPLicense.txt). You should be given a copy of the Xyndravandria PHP License (XyndravandriaPHPLicense.txt) within the same directory as the README.md; if not, you can get a copy at http://Xyndravandria.ohost.de/XyndravandriaPHPLicense.txt . There might be a release under a freer license for a later, more stable version.

The documentation is either included in ./admin_media/Documentation/ or can be read at http://Xyndravandria.ohost.de/Dyverath/Documentation/.

All projects:

   Xyndravandria Averazain
   http://github.com/MauroDiGirolamo/Xyndravandria_Averazain
   PHP
   Averazain is an Ajax framework supporting also JavaScript disabled clients perfectly - including search engines like Google.
  
   Xyndravandria Dyverath
   http://github.com/MauroDiGirolamo/Xyndravandria_Dyverath
   PHP
   Dyverath is a database access wrapper.
  
   Xyndravandria Erozaver
   http://github.com/MauroDiGirolamo/Xyndravandria_Erozaver
   PHP
   Erozaver is a class extending the type hinting given by the PHP engine (additional support for basic type hinting and size constraints).
  
   Xyndravandria Mondraviel
   http://github.com/MauroDiGirolamo/Xyndravandria_Mondraviel
   PHP
   Mondraviel is a class used to separate HTML from PHP code by firstly register models - files containing place holders embedded in HTML code - and then later fill them dynamically with content by passing values for the place holders.
*/

namespace Xyndravandria\Dyverath\Query\Component\Statement\StatementListing;

use
Xyndravandria\Erozaver\XyndravandriaDyverathException;

/// A class representing an INSERT INTO statement.
/// @abstract
class InsertIntoStatement extends StatementListing {
  
  
/// Checks whether an array of Statements is in the
   /// can be used for an InsertIntoStatement.
   /// @public
   /// @param array $Statements: The Statements to
   /// validate.
   /// @note Required by the StatementListing class. @n
   /// NOT IMPLEMENTED YET.
  
public function ValidStatements( array $Statements ) {
     
// TODO: InsertIntoStatement::ValidStatements( ).
     
return true;
   }
        
  
/// Returns an InsertIntoStatement as a string.
   /// @public
   /// @returns string
   /// @note Required by the Component class.
  
public function __ToString( ) {
     
$String = '( ';
      foreach(
$this->Statements as $Statement )
        
$String .= $Statement->Left( ) . ' , ';
     
$String = \substr( $String, 0, \strlen( $String ) - 2 ) . ') VALUES ( ';
      foreach(
$this->Statements as $Statement )
        
$String .= $Statement->Right( ) . ' , ';
      return \
substr( $String, 0, \strlen( $String ) - 2 ) . ')';
   }
  
}
?>