Lançado Adianti Framework 7.6!
Clique aqui para saber mais
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 19)

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

Redefinition of:
TSqlStatement::$sql

Inherited Variables

Inherited from TSqlStatement

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

Constructor method

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

Returns the INSERT plain statement

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

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

Return the prepared vars

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

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 39)

Assign values to the database columns

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

Unset row data

  • access: public
unsetRowData ($column)
  • $column: Name of the database column

Inherited Methods

Inherited From TSqlStatement

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