PHP Класс Zend_Db_Table_Select

Наследование: extends Zend_Db_Select
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_info array Table schema for parent Zend_Db_Table.
$_integrityCheck array Table integrity override.
$_table Zend_Db_Table_Abstract Table instance that created this select object

Открытые методы

Метод Описание
__construct ( Zend_Db_Table_Abstract $table ) Class constructor
assemble ( ) : string | null Performs a validation on the select query before passing back to the parent class.
from ( array | string | Zend_Db_Expr | Zend_Db_Table_Abstract $name, array | string | Zend_Db_Expr $cols = self::SQL_WILDCARD, string $schema = null ) : Zend_Db_Table_Select Adds a FROM table and optional columns to the query.
getTable ( ) : Zend_Db_Table_Abstract Return the table that created this select object
isReadOnly ( ) : boolean Tests query to determine if expressions or aliases columns exist.
setIntegrityCheck ( $flag = true ) : Zend_Db_Select Sets the integrity check flag.
setTable ( Zend_Db_Table_Abstract $table ) : Zend_Db_Select Sets the primary table name and retrieves the table schema.

Описание методов

__construct() публичный Метод

Class constructor
public __construct ( Zend_Db_Table_Abstract $table )
$table Zend_Db_Table_Abstract

assemble() публичный Метод

Ensures that only columns from the primary Zend_Db_Table are returned in the result.
public assemble ( ) : string | null
Результат string | null This object as a SELECT string (or null if a string cannot be produced)

from() публичный Метод

The table name can be expressed
public from ( array | string | Zend_Db_Expr | Zend_Db_Table_Abstract $name, array | string | Zend_Db_Expr $cols = self::SQL_WILDCARD, string $schema = null ) : Zend_Db_Table_Select
$name array | string | Zend_Db_Expr | Zend_Db_Table_Abstract The table name or an associative array relating table name to correlation name.
$cols array | string | Zend_Db_Expr The columns to select from this table.
$schema string The schema name to specify, if any.
Результат Zend_Db_Table_Select This Zend_Db_Table_Select object.

getTable() публичный Метод

Return the table that created this select object
public getTable ( ) : Zend_Db_Table_Abstract
Результат Zend_Db_Table_Abstract

isReadOnly() публичный Метод

Tests query to determine if expressions or aliases columns exist.
public isReadOnly ( ) : boolean
Результат boolean

setIntegrityCheck() публичный Метод

Setting this flag to false skips the checks for table joins, allowing 'hybrid' table rows to be created.
public setIntegrityCheck ( $flag = true ) : Zend_Db_Select
Результат Zend_Db_Select This Zend_Db_Select object.

setTable() публичный Метод

Sets the primary table name and retrieves the table schema.
public setTable ( Zend_Db_Table_Abstract $table ) : Zend_Db_Select
$table Zend_Db_Table_Abstract
Результат Zend_Db_Select This Zend_Db_Select object.

Описание свойств

$_info защищенное свойство

Table schema for parent Zend_Db_Table.
protected array $_info
Результат array

$_integrityCheck защищенное свойство

Table integrity override.
protected array $_integrityCheck
Результат array

$_table защищенное свойство

Table instance that created this select object
protected Zend_Db_Table_Abstract $_table
Результат Zend_Db_Table_Abstract