lithium\data\source\Database::_entityName()
Returns a fully-qualified table name (i.e. with prefix), quoted.
Parameters
-
string
$entity
A table name or fully-namespaced model class name.
-
array
$options
Available options:
'quoted'
boolean: Indicates whether the name should be quoted.
Returns
stringReturns a quoted table name.
Source
protected function _entityName($entity, array $options = []) {
$defaults = ['quoted' => false];
$options += $defaults;
if (class_exists($entity, false) && method_exists($entity, 'meta')) {
$entity = $entity::meta('source');
}
return $options['quoted'] ? $this->name($entity) : $entity;
}