menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TSqlInsert

Description

Provides an Interface to create an INSERT statement

Located in /database/TSqlInsert.php (line 18)

TSqlStatement
   |
   --TSqlInsert
Variable Summary
mixed $sql
Method Summary
getInstruction ([$prepared = FALSE])
setCriteria ($criteria)
setRowData ($column, $value)
Variables
mixed $sql (line 20)
  • access: protected

Redefinition of:
TSqlStatement::$sql

Inherited Variables

Inherited from TSqlStatement

TSqlStatement::$criteria
TSqlStatement::$entity
Methods
Constructor __construct (line 27)

Constructor method

  • access: public
__construct ()
getInstruction (line 125)

Returns the INSERT plain statement

  • access: public
getInstruction ([$prepared = FALSE])
  • $prepared: Return a prepared Statement

Redefinition of:
TSqlStatement::getInstruction()
getPreparedVars (line 116)

Return the prepared vars

  • access: public
getPreparedVars ()
setCriteria (line 108)

this method doesn't exist in this class context

  • exception: Exception in any case
  • access: public
setCriteria ($criteria)
  • $criteria: A TCriteria object, specifiyng the filters

Redefinition of:
TSqlStatement::setCriteria()
Define a select criteria
setRowData (line 38)

Assign values to the database columns

  • access: public
setRowData ($column, $value)
  • $column: Name of the database column
  • $value: Value for the database column

Inherited Methods

Inherited From TSqlStatement

TSqlStatement::getEntity()
TSqlStatement::getInstruction()
TSqlStatement::getRandomParameter()
TSqlStatement::setCriteria()
TSqlStatement::setEntity()