Overview

Namespaces

  • DSchoenbauer
    • Sql
      • Command
      • Exception
      • Where

Classes

  • Create
  • Delete
  • Select
  • Update

Interfaces

  • CommandInterface

Traits

  • WhereTrait
  • Overview
  • Namespace
  • Class

Trait WhereTrait

Common functionality all items using a where statement use.

Direct Known Users

DSchoenbauer\Sql\Command\Delete, DSchoenbauer\Sql\Command\Select, DSchoenbauer\Sql\Command\Update
Namespace: DSchoenbauer\Sql\Command
Author: David Schoenbauer dschoenbauer@gmail.com
Located at Sql/Command/WhereTrait.php
Methods summary
public string
# getWhereStatement( )

Adds the prefix WHERE to what the where object has provided as a where statement

Adds the prefix WHERE to what the where object has provided as a where statement

Returns

string
returns a full WHERE statement will return null if not statement provided

Since

v1.0.0
protected boolean
# hasWhere( )

checks to see if a where statement has been provided

checks to see if a where statement has been provided

Returns

boolean
checks to see if a where statement has been set

Since

v1.0.0
public DSchoenbauer\Sql\Where\WhereStatementInterface
# getWhere( )

returns where statement given to object

returns where statement given to object

Returns

DSchoenbauer\Sql\Where\WhereStatementInterface
provides stored where statement object

Since

v1.0.0
public inherit
# setWhere( DSchoenbauer\Sql\Where\WhereStatementInterface $where = null )

adds a where statement to a given statement

adds a where statement to a given statement

Parameters

$where
where statement to be used added

Returns

inherit
bubbling

Since

v1.0.0
public array
# getWhereData( )

returns an array that can be used in a prepared statement

returns an array that can be used in a prepared statement

Returns

array
an array of data specific to the data of the where statement

Since

v1.0.0
API documentation generated by ApiGen