API Documentation

Db/Table/Select.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Db
subpackage
Select
version
$Id: Select.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Db_Table_Select

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Db_Table_Select

Extends from
Zend_Db_Select
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Db
subpackage
Table
Properties
$_info
$_integrityCheck
$_table
Methods
__construct
getTable
setTable
setIntegrityCheck
isReadOnly
from
assemble

Description

Class for SQL SELECT query manipulation for the Zend_Db_Table component.

Properties

$_info

array $_info = ''

Table schema for parent Zend_Db_Table.

Details

$_info
array
visibility
protected
default
final
false
static
false

$_integrityCheck

array $_integrityCheck = 'true'

Table integrity override.

Details

$_integrityCheck
array
visibility
protected
default
true
final
false
static
false

$_table

Zend_Db_Table_Abstract $_table = ''

Table instance that created this select object

Details

$_table
Zend_Db_Table_Abstract
visibility
protected
default
final
false
static
false

Methods

__construct

__construct(  $table ) :

Class constructor

Arguments
$table
Details
visibility
public
final
false
static
false

assemble

assemble( ) : string|null

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.

Output
string|null
This object as a SELECT string (or null if a string cannot be produced)
Details
visibility
public
final
false
static
false

from

from( array|string|Zend_Db_Expr|Zend_Db_Table_Abstract $name, array|string|Zend_Db_Expr $cols = self, string $schema = null ) : Zend_Db_Table_Select

Adds a FROM table and optional columns to the query.

The table name can be expressed

Arguments
$name
arraystringZend_Db_ExprZend_Db_Table_Abstract
The table name or an associative array relating table name to correlation name.
$cols
arraystringZend_Db_Expr
The columns to select from this table.
$schema
string
The schema name to specify, if any.
Output
Zend_Db_Table_Select
This Zend_Db_Table_Select object.
Details
visibility
public
final
false
static
false

getTable

getTable( ) : Zend_Db_Table_Abstract

Return the table that created this select object

Details
visibility
public
final
false
static
false

isReadOnly

isReadOnly( ) : boolean

Tests query to determine if expressions or aliases columns exist.

Output
boolean
Details
visibility
public
final
false
static
false

setIntegrityCheck

setIntegrityCheck(  $flag = true ) : Zend_Db_Select

Sets the integrity check flag.

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

Arguments
$flag
Output
Zend_Db_Select
This Zend_Db_Select object.
Details
visibility
public
final
false
static
false

setTable

setTable(  $table ) : Zend_Db_Select

Sets the primary table name and retrieves the table schema.

Arguments
$table
Output
Zend_Db_Select
This Zend_Db_Select object.
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.