Drupal 8  8.0.2
Tables Class Reference
Inheritance diagram for Tables:

Public Member Functions

 __construct (SelectInterface $sql_query)
 
 isFieldCaseSensitive ($field_name)
 
- Public Member Functions inherited from TablesInterface
 addField ($field, $type, $langcode)
 

Protected Member Functions

 ensureEntityTable ($index_prefix, $property, $type, $langcode, $base_table, $id_field, $entity_tables)
 
 addJoin ($type, $table, $join_condition, $langcode)
 
 getTableMapping ($table, $entity_type_id)
 

Protected Attributes

 $sqlQuery
 
 $entityTables = array()
 
 $fieldTables = array()
 
 $entityManager
 
 $caseSensitiveFields = array()
 

Detailed Description

Adds tables and fields to the SQL entity query.

Constructor & Destructor Documentation

__construct ( SelectInterface  $sql_query)
Parameters
\Drupal\Core\Database\Query\SelectInterface$sql_query

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

ensureEntityTable (   $index_prefix,
  $property,
  $type,
  $langcode,
  $base_table,
  $id_field,
  $entity_tables 
)
protected

Join entity table if necessary and return the alias for it.

Parameters
string$property
Returns
string
Exceptions
\Drupal\Core\Entity\Query\QueryException
getTableMapping (   $table,
  $entity_type_id 
)
protected

Gets the schema for the given table.

Parameters
string$tableThe table name.
Returns
array|bool The table field mapping for the given table or FALSE if not available.

References Drupal\entityManager().

Here is the call graph for this function:

isFieldCaseSensitive (   $field_name)

{Determines whether the given field is case sensitive.This information can only be provided after it was added with addField().

Parameters
string$field_nameThe name of the field.
Returns
bool|null TRUE if the field is case sensitive, FALSE if not. Returns NULL when the field did not define if it is case sensitive or not.
}

Implements TablesInterface.


The documentation for this class was generated from the following file: