Class DatabaseSource
Database Source, through PDO.
- Charcoal\Source\AbstractSource implements Charcoal\Source\SourceInterface, Charcoal\Config\ConfigurableInterface, Psr\Log\LoggerAwareInterface uses Charcoal\Config\ConfigurableTrait (not available) Psr\Log\LoggerAwareTrait (not available)
- Charcoal\Source\DatabaseSource implements Charcoal\Source\DatabaseSourceInterface
public
|
|
public
|
|
public
string
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
boolean
|
|
public
PDO
|
|
public
|
|
public
|
#
loadItemFromKey( string $key, mixed $ident,
Load item from a custom column's name ($key) |
public
|
#
loadItemFromQuery( string $query, array $binds = [],
|
public
array
|
|
public
array
|
#
loadItemsFromQuery( string $q, array $binds = [],
Loads items to a list from a query Allows external use. |
public
mixed
|
|
public
boolean
|
#
updateItem(
Update an item in storage. |
public
boolean
|
|
public
PDOStatement|false
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
addFilter(),
addOrder(),
addProperty(),
filters(),
getter(),
hasModel(),
model(),
numPerPage(),
orders(),
page(),
pagination(),
properties(),
reset(),
setData(),
setFilters(),
setModel(),
setNumPerPage(),
setOrders(),
setPage(),
setPagination(),
setProperties(),
setter()
|
string |
DEFAULT_DB_HOSTNAME
|
#
'localhost'
|
string |
DEFAULT_DB_TYPE
|
#
'mysql'
|
$filters,
$orders,
$pagination
|