Public Member Functions | Protected Attributes

Zend_Db_Table_Select Class Reference

Inheritance diagram for Zend_Db_Table_Select:
Zend_Db_Select

Public Member Functions

 __construct (Zend_Db_Table_Abstract $table)
 getTable ()
 setTable (Zend_Db_Table_Abstract $table)
 setIntegrityCheck ($flag=true)
 isReadOnly ()
 from ($name, $cols=self::SQL_WILDCARD, $schema=null)
 assemble ()

Protected Attributes

 $_info
 $_integrityCheck = true
 $_table

Detailed Description

Definition at line 46 of file Select.php.


Constructor & Destructor Documentation

__construct ( Zend_Db_Table_Abstract table )

Class constructor

Parameters:
Zend_Db_Table_Abstract$adapter

Definition at line 74 of file Select.php.


Member Function Documentation

assemble (  )

Performs a validation on the select query before passing back to the parent class. Ensures that only columns from the primary Zend_Db_Table are returned in the result.

Returns:
string|null This object as a SELECT string (or null if a string cannot be produced)

Reimplemented from Zend_Db_Select.

Definition at line 190 of file Select.php.

from ( name,
cols = self::SQL_WILDCARD,
schema = null 
)

Adds a FROM table and optional columns to the query.

The table name can be expressed

Parameters:
array | string | Zend_Db_Expr | Zend_Db_Table_Abstract$nameThe table name or an associative array relating table name to correlation name.
array | string | Zend_Db_Expr$colsThe columns to select from this table.
string$schemaThe schema name to specify, if any.
Returns:
Zend_Db_Table_Select This Zend_Db_Table_Select object.

Reimplemented from Zend_Db_Select.

Definition at line 171 of file Select.php.

getTable (  )

Return the table that created this select object

Returns:
Zend_Db_Table_Abstract

Definition at line 86 of file Select.php.

isReadOnly (  )

Tests query to determine if expressions or aliases columns exist.

Returns:
boolean

Definition at line 126 of file Select.php.

setIntegrityCheck ( flag = true )

Sets the integrity check flag.

Setting this flag to false skips the checks for table joins, allowing 'hybrid' table rows to be created.

Parameters:
Zend_Db_Table_Abstract$adapter
Returns:
Zend_Db_Select This Zend_Db_Select object.

Definition at line 115 of file Select.php.

setTable ( Zend_Db_Table_Abstract table )

Sets the primary table name and retrieves the table schema.

Parameters:
Zend_Db_Table_Abstract$adapter
Returns:
Zend_Db_Select This Zend_Db_Select object.

Definition at line 97 of file Select.php.


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