Translatable::get_by_locale
Get all the instances of the given class translated to the given language
Signature
public function get_by_locale(string
$class,
string
$locale,
[string
$filter = '',
[string
$sort = '',
[string
$join = "",
[string
$limit = ""]]]] )
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.
$sort
—
string
- A sort expression to be inserted into the ORDER BY clause.
$join
—
string
- A single join clause. This can be used for filtering, only 1
instance of each DataObject will be returned.
$limit
—
string
- A limit expression to be inserted into the LIMIT clause.
Returns
- mixed
- The objects matching the conditions.