<?php echo $model->player_nick; ?> </td> </tr> <tr> <td>Ваш SteamID:</td> <td><?php echo $model->player_id; ?> </td> </tr> <tr> <td>Истекает:</td> <td><?php echo Prefs::getExpired($model->ban_created, $model->ban_length); ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td>Срок бана:</td> <td class="banDuration<?php echo $model->ban_length == 0 ? 'Perm' : ''; ?> "><?php echo Prefs::date2word($model->ban_length); ?> </td>
/** * Возвращает дату истечения бана * @return string */ public function getExpiredTime() { return Prefs::getExpired($this->ban_created, $this->ban_length); }