PHP Интерфейс ManaPHP\Mvc\Model\ManagerInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
createBuilder ( string | array $params = null ) : ManaPHP\Mvc\Model\QueryBuilderInterface Creates a \ManaPHP\Mvc\Model\Query\Builder
getLastQuery ( ) : string Returns the last query created or executed in the
getModelSource ( ManaPHP\Mvc\ModelInterface | string $model ) : string Returns the mapped source for a model
getReadConnection ( ManaPHP\Mvc\ModelInterface | string $model ) : ManaPHP\DbInterface Returns the connection to read data related to a model
getReadConnectionService ( ManaPHP\Mvc\ModelInterface | string $model ) : string Returns the connection service name used to read data related to a model
getWriteConnection ( ManaPHP\Mvc\ModelInterface | string $model ) : ManaPHP\DbInterface Returns the connection to write data related to a model
getWriteConnectionService ( ManaPHP\Mvc\ModelInterface | string $model ) : string Returns the connection service name used to write data related to a model
setConnectionService ( ManaPHP\Mvc\ModelInterface | string $model, string $connectionService ) Sets both write and read connection service for a model
setModelSource ( ManaPHP\Mvc\ModelInterface | string $model, string $source ) : static Sets the mapped source for a model
setReadConnectionService ( ManaPHP\Mvc\ModelInterface | string $model, string $connectionService ) Sets read connection service for a model
setWriteConnectionService ( ManaPHP\Mvc\ModelInterface | string $model, string $connectionService ) Sets write connection service for a model

Описание методов

createBuilder() публичный Метод

Creates a \ManaPHP\Mvc\Model\Query\Builder
public createBuilder ( string | array $params = null ) : ManaPHP\Mvc\Model\QueryBuilderInterface
$params string | array
Результат ManaPHP\Mvc\Model\QueryBuilderInterface

getLastQuery() публичный Метод

Returns the last query created or executed in the
public getLastQuery ( ) : string
Результат string

getModelSource() публичный Метод

Returns the mapped source for a model
public getModelSource ( ManaPHP\Mvc\ModelInterface | string $model ) : string
$model ManaPHP\Mvc\ModelInterface | string
Результат string

getReadConnection() публичный Метод

Returns the connection to read data related to a model
public getReadConnection ( ManaPHP\Mvc\ModelInterface | string $model ) : ManaPHP\DbInterface
$model ManaPHP\Mvc\ModelInterface | string
Результат ManaPHP\DbInterface

getReadConnectionService() публичный Метод

Returns the connection service name used to read data related to a model
public getReadConnectionService ( ManaPHP\Mvc\ModelInterface | string $model ) : string
$model ManaPHP\Mvc\ModelInterface | string
Результат string

getWriteConnection() публичный Метод

Returns the connection to write data related to a model
public getWriteConnection ( ManaPHP\Mvc\ModelInterface | string $model ) : ManaPHP\DbInterface
$model ManaPHP\Mvc\ModelInterface | string
Результат ManaPHP\DbInterface

getWriteConnectionService() публичный Метод

Returns the connection service name used to write data related to a model
public getWriteConnectionService ( ManaPHP\Mvc\ModelInterface | string $model ) : string
$model ManaPHP\Mvc\ModelInterface | string
Результат string

setConnectionService() публичный Метод

Sets both write and read connection service for a model
public setConnectionService ( ManaPHP\Mvc\ModelInterface | string $model, string $connectionService )
$model ManaPHP\Mvc\ModelInterface | string
$connectionService string

setModelSource() публичный Метод

Sets the mapped source for a model
public setModelSource ( ManaPHP\Mvc\ModelInterface | string $model, string $source ) : static
$model ManaPHP\Mvc\ModelInterface | string
$source string
Результат static

setReadConnectionService() публичный Метод

Sets read connection service for a model
public setReadConnectionService ( ManaPHP\Mvc\ModelInterface | string $model, string $connectionService )
$model ManaPHP\Mvc\ModelInterface | string
$connectionService string

setWriteConnectionService() публичный Метод

Sets write connection service for a model
public setWriteConnectionService ( ManaPHP\Mvc\ModelInterface | string $model, string $connectionService )
$model ManaPHP\Mvc\ModelInterface | string
$connectionService string