Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • ColumnRef
  • DDLQuery
  • Expression
  • Insert
  • Join
  • Predicate
  • Query
  • Scalar
  • TableRef

Interfaces

  • IQuery
  • IQueryFragment
  • IQueryValue
  • Overview
  • Namespace
  • Class
  • Tree

Class TableRef

Represents a reference to a table in a SQL query

Alchemy\core\Element implements Alchemy\core\IElement
Extended by Alchemy\core\query\TableRef implements Alchemy\util\promise\IPromisable

Direct known subclasses

Alchemy\orm\ORMTableRef
Namespace: Alchemy\core\query
Located at alchemy/core/query/TableRef.php
Methods summary
public static array(method_name
# list_promisable_methods( )

Returns an array mapping promisable methods to return types. A promisable method is one that is dependent only on immutable inputs and is guaranteed to return an instance of a certain type.

Returns an array mapping promisable methods to return types. A promisable method is one that is dependent only on immutable inputs and is guaranteed to return an instance of a certain type.

Returns

array(method_name
=> class_name, ...)

Implementation of

Alchemy\util\promise\IPromisable::list_promisable_methods()
public Alchemy\core\query\ColumnRef
# __get( string $name )

Get a column reference by name

Get a column reference by name

Parameters

$name
string
$name Column name

Returns

Alchemy\core\query\ColumnRef
reference to Column
public
# __construct( mixed $schema )

Overrides

Alchemy\core\Element::__construct()
public
# columns( )
public
# getDescription( mixed $maxdepth = 3, mixed $curdepth = 0 )

Overrides

Alchemy\core\Element::getDescription()
public Alchemy\core\query\Predicate
# equal( array $columns )

Returns a Predicate for filtering rows of this table equal to the values of a map

Returns a Predicate for filtering rows of this table equal to the values of a map

Parameters

$columns
array
$columns array('ColumnName' => Value)

Returns

Alchemy\core\query\Predicate
public
# name( )
public
# schema( )
Methods inherited from Alchemy\core\Element
__callStatic(), __clone(), addTag(), addTags(), copy(), define(), define_alias(), getID(), getTag(), getType(), get_definition(), listTags(), normalize_arg()
Properties summary
protected mixed $schema
#
Properties inherited from Alchemy\core\Element
$id, $tags, $type
API documentation generated by ApiGen 2.8.0