25 lines
404 B
PHP
Executable File
25 lines
404 B
PHP
Executable File
<?php
|
|
|
|
namespace common\components\behaviors\timestampBehavior;
|
|
|
|
use common\components\DateTimeHelper;
|
|
use yii\behaviors\TimestampBehavior;
|
|
|
|
|
|
|
|
|
|
class TimestampBehaviorMilliseconds extends TimestampBehavior
|
|
{
|
|
|
|
|
|
|
|
protected function getValue($event)
|
|
{
|
|
if ($this->value === null) {
|
|
return DateTimeHelper::mstime();
|
|
}
|
|
|
|
parent::getValue($event);
|
|
}
|
|
}
|