public static function getOrderStatuses()
{
$db = Factory::getDBO();
$query = 'SELECT a.title AS text, a.id AS value' . ' FROM #__phocacart_order_statuses AS a' . ' WHERE a.published = 1' . ' ORDER BY a.ordering';
$db->setQuery($query);
$data = $db->loadObjectList();
if (!empty($data)) {
foreach ($data as $k => $v) {
$v->text = Text::_($v->text);
}
}
return $data;
}