datetime.stub 226 B

123456
  1. public function {%methodName%}($value, $data)
  2. {
  3. $value = $value ? $value : (isset($data['{%field%}']) ? $data['{%field%}'] : '');
  4. return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  5. }