public setDefaultValue ( mixed $defaultValue ) | ||
$defaultValue | mixed |
public function setDefaultValue($defaultValue)
{
if (strlen(strval($defaultValue)) > 0) {
if (is_numeric($defaultValue)) {
$this->defaultValue = (int) $defaultValue;
} else {
$this->defaultValue = strtotime($defaultValue);
}
}
return $this;
}