Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • waDbAdapter
  • waDbCacheIterator
  • waDbConnector
  • waDbIbaseAdapter
  • waDbMySQLAdapter
  • waDbMysqliAdapter
  • waDbPostgresAdapter
  • waDbQuery
  • waDbQueryAnalyzer
  • waDbRecord
  • waDbResult
  • waDbResultDelete
  • waDbResultIbaseIterator
  • waDbResultInsert
  • waDbResultIterator
  • waDbResultReplace
  • waDbResultSelect
  • waDbResultUpdate
  • waDbSqlite3Adapter
  • waDbStatement
  • waModel
  • waNestedSetModel

Exceptions

  • waDbException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class waDbStatement

DbStatement Use typed placeholders. Allowed 2 formats:
  • [sibf]? - not named
    [sibf] - type of the data
  • [sibf]:placeholderName - named,

Allowed types:

 's' - String,
 'i' - Integer,
 'b' - Boolean,
 'f' - Float.

If type is not specified, placeholder use as 's'.

Final
Package: wa-system\database
Copyright: 2011 Webasyst LLC
Author: Webasyst LLC
Located at wa-system/database/waDbStatement.class.php
Methods summary
public
# __construct( waModel $model, string $query )

Parameters

$model
waModel
$model
$query
string
$query
private
# prepareQuery( )

Preparing query to the next operations

Preparing query to the next operations

Throws

waException
public string
# getQuery( )

Assembly

Assembly

Returns

string
$query
private
# checkParams( )
public boolean
# bindParam( mixed $param, mixed & $value )

Parameters

$param
mixed
$param
$value
mixed
$value

Returns

boolean

Throws

waException
public boolean
# bindArray( mixed $params_array )

Parameters

$params_array
mixed
$params_array

Returns

boolean

Throws

waException
public waDbResultSelect|waDbResultInsert|waDbResultDelete
# query( array $params = array() )

Execute query and returns object of the result

Execute query and returns object of the result

Parameters

$params
array
$params

Returns

waDbResultSelect|waDbResultInsert|waDbResultDelete
$dbresult
public boolean
# exec( array $params = array() )

Execute query without creating of the result object

Execute query without creating of the result object

Parameters

$params
array
$params

Returns

boolean
public string
# escape( string $value )

Escapes special characters in a string for use in an SQL statement

Escapes special characters in a string for use in an SQL statement

Parameters

$value
string

Returns

string
Properties summary
private array $places_map array()
#

Placeholders

Placeholders

Param

array
$places_map
private array $binded_params array()
#

Values to replace placeholders

Values to replace placeholders

Param

array
$binded_params
protected waModel $model null
#

Model

Model

protected string $query ''
#

Query

Query

Param

string
$query
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0