add answer, time, status helpers
This commit is contained in:
1 parent
34c2998844
commit
7b8847e1e1
42 files changed
+2505
-570
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace common\helpers;
|
||||
|
||||
use yii\helpers\ArrayHelper;
|
||||
use yii\helpers\Html;
|
||||
|
||||
class TimeHelper
|
||||
{
|
||||
public static function limitTime($time_limit)
|
||||
{
|
||||
if ($time_limit === null)
|
||||
{
|
||||
return 'Не ограниченоTEST';
|
||||
}
|
||||
|
||||
return date("H:i:s", mktime(null, null, $time_limit)) . ' (HH:mm:ss)';
|
||||
|
||||
// $date
|
||||
// return Html::tag('span', $date, ['class' => 'label label-primary']);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user