array(
'header' => Yii::t("default", "Account status"),
'value' => function($data) use ($userPhoneStatus) {
if (!empty($userPhoneStatus[$data->easiio_id])) {
$count = $userPhoneStatus[$data->easiio_id]['device']['count'];
if ($count == 1) {
return Yii::t("default", "mobilephone online");
} elseif ($count == 2) {
return Yii::t("default", "hardphone online");
} elseif ($count == 3) {
return Yii::t("default", "mobilephone and hardphone online");
}
} else {
return Yii::t("default", "offline");
}
}
),
'header' => Yii::t("default", "Account status"),
'value' => function($data) use ($userPhoneStatus) {
if (!empty($userPhoneStatus[$data->easiio_id])) {
$count = $userPhoneStatus[$data->easiio_id]['device']['count'];
if ($count == 1) {
return Yii::t("default", "mobilephone online");
} elseif ($count == 2) {
return Yii::t("default", "hardphone online");
} elseif ($count == 3) {
return Yii::t("default", "mobilephone and hardphone online");
}
} else {
return Yii::t("default", "offline");
}
}
),