Fully Qualified Name: | Zend\Db\TableGateway\Feature\MasterSlaveFeature |
Extends: | AbstractFeature |
Parameter Name | Type | Description |
---|---|---|
$arguments | ||
$method | ||
$arguments |
Returns: mixed
__clone
Returns:
Constructor
Parameter Name | Type | Description |
---|---|---|
$slaveAdapter | \AdapterInterface | |
$slaveSql | \Sql|null |
Returns:
__get
Parameter Name | Type | Description |
---|---|---|
$property | string |
Returns: mixed
Parameter Name | Type | Description |
---|---|---|
$property | string | |
$value | mixed |
Returns: mixed
Delete
Parameter Name | Type | Description |
---|---|---|
$where | \Where|\Closure|string|array |
Returns: int
Parameter Name | Type | Description |
---|---|---|
$delete | \Delete |
Returns: int
Get adapter
Returns: \AdapterInterface
Returns: array
Returns: \Feature\FeatureSet
Get last insert value
Returns: int
Returns: void
Returns: void
Get select result prototype
Returns: \ResultSetInterface
Returns: void
Returns: \Sql
Returns: \Sql
Get table name
Returns: string
Returns: void
Insert
Parameter Name | Type | Description |
---|---|---|
$set | array |
Returns: int
Parameter Name | Type | Description |
---|---|---|
$insert | \Insert |
Returns: int
Returns: bool
after initialization, retrieve the original adapter as "master"
Returns:
postSelect() Ensure to return to the master adapter
Returns:
preSelect() Replace adapter with slave temporarily
Returns:
Select
Parameter Name | Type | Description |
---|---|---|
$where | \Where|\Closure|string|array |
Returns: \ResultSetInterface
Parameter Name | Type | Description |
---|---|---|
$select | \Select |
Returns: \ResultSetInterface
Parameter Name | Type | Description |
---|---|---|
$tableGateway |
Returns: void
Update
Parameter Name | Type | Description |
---|---|---|
$set | array | |
$where | string|array|\Closure | |
$joins | null|array |
Returns: int
Parameter Name | Type | Description |
---|---|---|
$update | \Zend\Db\Sql\Update |
Returns: int