protected function StringDatabaseStorage::dbFieldTable in Localization update 7.2
Gets table alias for field.
Parameters
string $field: Field name to find the table alias for.
Return value
string Either 's', 't' or 'l' depending on whether the field belongs to source, target or location table table.
1 call to StringDatabaseStorage::dbFieldTable()
- StringDatabaseStorage::dbStringSelect in includes/
locale/ StringDatabaseStorage.php - Builds a SELECT query with multiple conditions and fields.
File
- includes/
locale/ StringDatabaseStorage.php, line 193 - Definition of StringDatabaseStorage.
Class
- StringDatabaseStorage
- Defines the locale string class.
Code
protected function dbFieldTable($field) {
if (in_array($field, array(
'language',
'translation',
'l10n_status',
))) {
return 't';
}
elseif (in_array($field, array(
'type',
'name',
))) {
return 'l';
}
else {
return 's';
}
}