Translatable::get_one_by_locale
Get a singleton instance of a class in the given language.
Signature
public function get_one_by_locale(string
$class,
string
$locale,
[string
$filter = '',
[boolean
$cache = false,
[string
$orderby = ""]]] )
Parameters
$class
—
string
- The name of the class.
$locale
—
string
- The name of the language.
$filter
—
string
- A filter to be inserted into the WHERE clause.
$cache
—
boolean
- Use caching (default: false)
$orderby
—
string
- A sort expression to be inserted into the ORDER BY clause.
Returns
- DataObject