Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
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 () | |
![]() | |
__construct (Zend_Db_Adapter_Abstract $adapter) | |
getBind () | |
bind ($bind) | |
distinct ($flag=true) | |
from ($name, $cols=' *', $schema=null) | |
columns ($cols=' *', $correlationName=null) | |
union ($select=array(), $type=self::SQL_UNION) | |
join ($name, $cond, $cols=self::SQL_WILDCARD, $schema=null) | |
joinInner ($name, $cond, $cols=self::SQL_WILDCARD, $schema=null) | |
joinLeft ($name, $cond, $cols=self::SQL_WILDCARD, $schema=null) | |
joinRight ($name, $cond, $cols=self::SQL_WILDCARD, $schema=null) | |
joinFull ($name, $cond, $cols=self::SQL_WILDCARD, $schema=null) | |
joinCross ($name, $cols=self::SQL_WILDCARD, $schema=null) | |
joinNatural ($name, $cols=self::SQL_WILDCARD, $schema=null) | |
where ($cond, $value=null, $type=null) | |
orWhere ($cond, $value=null, $type=null) | |
group ($spec) | |
having ($cond, $value=null, $type=null) | |
orHaving ($cond, $value=null, $type=null) | |
order ($spec) | |
limit ($count=null, $offset=null) | |
limitPage ($page, $rowCount) | |
forUpdate ($flag=true) | |
getPart ($part) | |
query ($fetchMode=null, $bind=array()) | |
assemble () | |
reset ($part=null) | |
getAdapter () | |
_joinUsing ($type, $name, $cond, $cols=' *', $schema=null) | |
__call ($method, array $args) | |
__toString () | |
Protected Attributes | |
$_info | |
$_integrityCheck = true | |
$_table | |
![]() | |
$_bind = array() | |
$_adapter | |
$_parts = array() | |
$_tableCols = array() | |
Additional Inherited Members | |
![]() | |
const | DISTINCT = 'distinct' |
const | COLUMNS = 'columns' |
const | FROM = 'from' |
const | UNION = 'union' |
const | WHERE = 'where' |
const | GROUP = 'group' |
const | HAVING = 'having' |
const | ORDER = 'order' |
const | LIMIT_COUNT = 'limitcount' |
const | LIMIT_OFFSET = 'limitoffset' |
const | FOR_UPDATE = 'forupdate' |
const | INNER_JOIN = 'inner join' |
const | LEFT_JOIN = 'left join' |
const | RIGHT_JOIN = 'right join' |
const | FULL_JOIN = 'full join' |
const | CROSS_JOIN = 'cross join' |
const | NATURAL_JOIN = 'natural join' |
const | SQL_WILDCARD = '*' |
const | SQL_SELECT = 'SELECT' |
const | SQL_UNION = 'UNION' |
const | SQL_UNION_ALL = 'UNION ALL' |
const | SQL_FROM = 'FROM' |
const | SQL_WHERE = 'WHERE' |
const | SQL_DISTINCT = 'DISTINCT' |
const | SQL_GROUP_BY = 'GROUP BY' |
const | SQL_ORDER_BY = 'ORDER BY' |
const | SQL_HAVING = 'HAVING' |
const | SQL_FOR_UPDATE = 'FOR UPDATE' |
const | SQL_AND = 'AND' |
const | SQL_AS = 'AS' |
const | SQL_OR = 'OR' |
const | SQL_ON = 'ON' |
const | SQL_ASC = 'ASC' |
const | SQL_DESC = 'DESC' |
const | REGEX_COLUMN_EXPR = '/^([\w]*\s*\(([^\(\)]|(?1))*\))$/' |
const | REGEX_COLUMN_EXPR_ORDER = '/^([\w]+\s*\(([^\(\)]|(?1))*\))$/' |
const | REGEX_COLUMN_EXPR_GROUP = '/^([\w]+\s*\(([^\(\)]|(?1))*\))$/' |
const | REGEX_SQL_COMMENTS |
![]() | |
_join ($type, $name, $cond, $cols, $schema=null) | |
_tableCols ($correlationName, $cols, $afterCorrelationName=null) | |
_where ($condition, $value=null, $type=null, $bool=true) | |
_getDummyTable () | |
_getQuotedSchema ($schema=null) | |
_getQuotedTable ($tableName, $correlationName=null) | |
_renderDistinct ($sql) | |
_renderColumns ($sql) | |
_renderFrom ($sql) | |
_renderUnion ($sql) | |
_renderWhere ($sql) | |
_renderGroup ($sql) | |
_renderHaving ($sql) | |
_renderOrder ($sql) | |
_renderLimitoffset ($sql) | |
_renderForupdate ($sql) | |
![]() | |
static | $_partsInit |
static | $_joinTypes |
static | $_unionTypes |
Definition at line 46 of file Select.php.
__construct | ( | Zend_Db_Table_Abstract | $table | ) |
Class constructor
Zend_Db_Table_Abstract | $adapter |
Definition at line 74 of file Select.php.
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.
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
array | string | Zend_Db_Expr | Zend_Db_Table_Abstract | $name | The table name or an associative array relating table name to correlation name. |
array | string | Zend_Db_Expr | $cols | The columns to select from this table. |
string | $schema | The schema name to specify, if any. |
Definition at line 171 of file Select.php.
getTable | ( | ) |
Return the table that created this select object
Definition at line 86 of file Select.php.
isReadOnly | ( | ) |
Tests query to determine if expressions or aliases columns exist.
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.
Zend_Db_Table_Abstract | $adapter |
Definition at line 115 of file Select.php.
setTable | ( | Zend_Db_Table_Abstract | $table | ) |
Sets the primary table name and retrieves the table schema.
Zend_Db_Table_Abstract | $adapter |
Definition at line 97 of file Select.php.
|
protected |
Definition at line 53 of file Select.php.
|
protected |
Definition at line 60 of file Select.php.
|
protected |
Definition at line 67 of file Select.php.