You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
226 B
6 lines
226 B
2 months ago
|
|
||
|
public function {%methodName%}($value, $data)
|
||
|
{
|
||
|
$value = $value ? $value : (isset($data['{%field%}']) ? $data['{%field%}'] : '');
|
||
|
return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
|
||
|
}
|