Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($config=array(), $definition=null) | |
![]() | |
__construct ($config=array()) | |
setOptions (Array $options) | |
setDefinition (Zend_Db_Table_Definition $definition) | |
getDefinition () | |
setDefinitionConfigName ($definitionConfigName) | |
getDefinitionConfigName () | |
setRowClass ($classname) | |
getRowClass () | |
setRowsetClass ($classname) | |
getRowsetClass () | |
addReference ($ruleKey, $columns, $refTableClass, $refColumns, $onDelete=null, $onUpdate=null) | |
setReferences (array $referenceMap) | |
getReference ($tableClassname, $ruleKey=null) | |
setDependentTables (array $dependentTables) | |
getDependentTables () | |
setDefaultSource ($defaultSource=self::DEFAULT_NONE) | |
getDefaultSource () | |
setDefaultValues (Array $defaultValues) | |
getDefaultValues () | |
getAdapter () | |
getMetadataCache () | |
setMetadataCacheInClass ($flag) | |
metadataCacheInClass () | |
init () | |
info ($key=null) | |
select ($withFromPart=self::SELECT_WITHOUT_FROM_PART) | |
insert (array $data) | |
isIdentity ($column) | |
update (array $data, $where) | |
_cascadeUpdate ($parentTableClassname, array $oldPrimaryKey, array $newPrimaryKey) | |
delete ($where) | |
_cascadeDelete ($parentTableClassname, array $primaryKey) | |
find () | |
fetchAll ($where=null, $order=null, $count=null, $offset=null) | |
fetchRow ($where=null, $order=null, $offset=null) | |
fetchNew () | |
createRow (array $data=array(), $defaultSource=null) | |
Additional Inherited Members | |
![]() | |
static | setDefaultAdapter ($db=null) |
static | getDefaultAdapter () |
static | setDefaultMetadataCache ($metadataCache=null) |
static | getDefaultMetadataCache () |
static | getTableFromString ($tableName, Zend_Db_Table_Abstract $referenceTable=null) |
![]() | |
const | ADAPTER = 'db' |
const | DEFINITION = 'definition' |
const | DEFINITION_CONFIG_NAME = 'definitionConfigName' |
const | SCHEMA = 'schema' |
const | NAME = 'name' |
const | PRIMARY = 'primary' |
const | COLS = 'cols' |
const | METADATA = 'metadata' |
const | METADATA_CACHE = 'metadataCache' |
const | METADATA_CACHE_IN_CLASS = 'metadataCacheInClass' |
const | ROW_CLASS = 'rowClass' |
const | ROWSET_CLASS = 'rowsetClass' |
const | REFERENCE_MAP = 'referenceMap' |
const | DEPENDENT_TABLES = 'dependentTables' |
const | SEQUENCE = 'sequence' |
const | COLUMNS = 'columns' |
const | REF_TABLE_CLASS = 'refTableClass' |
const | REF_COLUMNS = 'refColumns' |
const | ON_DELETE = 'onDelete' |
const | ON_UPDATE = 'onUpdate' |
const | CASCADE = 'cascade' |
const | CASCADE_RECURSE = 'cascadeRecurse' |
const | RESTRICT = 'restrict' |
const | SET_NULL = 'setNull' |
const | DEFAULT_NONE = 'defaultNone' |
const | DEFAULT_CLASS = 'defaultClass' |
const | DEFAULT_DB = 'defaultDb' |
const | SELECT_WITH_FROM_PART = true |
const | SELECT_WITHOUT_FROM_PART = false |
![]() | |
_setAdapter ($db) | |
_setMetadataCache ($metadataCache) | |
_setSequence ($sequence) | |
_setup () | |
_setupDatabaseAdapter () | |
_setupTableName () | |
_setupMetadata () | |
_getCols () | |
_setupPrimaryKey () | |
_getReferenceMapNormalized () | |
_where (Zend_Db_Table_Select $select, $where) | |
_order (Zend_Db_Table_Select $select, $order) | |
_fetch (Zend_Db_Table_Select $select) | |
![]() | |
static | _setupAdapter ($db) |
static | _setupMetadataCache ($metadataCache) |
![]() | |
$_definition = null | |
$_definitionConfigName = null | |
$_db | |
$_schema = null | |
$_name = null | |
$_cols | |
$_primary = null | |
$_identity = 1 | |
$_sequence = true | |
$_metadata = array() | |
$_metadataCache = null | |
$_metadataCacheInClass = true | |
$_rowClass = 'Zend_Db_Table_Row' | |
$_rowsetClass = 'Zend_Db_Table_Rowset' | |
$_referenceMap = array() | |
$_dependentTables = array() | |
$_defaultSource = self::DEFAULT_NONE | |
$_defaultValues = array() | |
![]() | |
static | $_defaultDb |
static | $_defaultMetadataCache = null |
__construct | ( | $config = array() , |
|
$definition = null |
|||
) |
__construct() - For concrete implementation of Zend_Db_Table
string | array | $config | string can reference a Zend_Registry key for a db adapter OR it can reference the name of a table |
array | Zend_Db_Table_Definition | $definition |
Definition at line 52 of file Table.php.