Location: PHPKode > projects > Scorpio Framework for PHP > scorpioframework_php_0.3.5/libraries/generator/templates/dao/defaultFieldValue.tpl
{strip}
{if $oField->getIsNull()}
	null
{elseif is_array($oField->getDefault())}
	array()
{elseif is_float($oField->getDefault())}
	0
	{if $oField->getPrecision() > 0}
		.{string_repeat char=0 repeat=$oField->getPrecision()|default:1}
	{/if}
{elseif is_numeric($oField->getDefault())}
	0
{elseif is_string($oField->getDefault())}
	{if count($oField->getValues()) > 0}
		'{$oField->getDefault()}'
	{elseif $oField->getDefault()}
		{if $oField->getPhpType() == 'datetime' || $oField->getPhpType() == 'timestamp'}
			{$oField->getDefault()}
		{else}
			'{$oField->getDefault()}'
		{/if}
	{else}
		''
	{/if}
{else}
	false
{/if}
{/strip}
Return current item: Scorpio Framework for PHP