Source/SimpleTransaction.php
protected function setDefaults($sets = array())
    {
        foreach ($sets as $set) {
            foreach ($set as $field => $fieldParams) {
                if ($fieldParams['type'] == 'single' && isset($fieldParams['default'])) {
                    $this->fieldData[$field] = $fieldParams['default'];
                }
            }
        }
    }
protected function setDefaults($sets = array())
    {
        foreach ($sets as $set) {
            foreach ($set as $field => $fieldParams) {
                if ($fieldParams['type'] == 'single' && isset($fieldParams['default'])) {
                    $this->fieldData[$field] = $fieldParams['default'];
                }
            }
        }
    }
protected function setDefaults ( $ sets = array ( ) ) { foreach ( $ sets as $ set ) { foreach ( $ set as $ field => $ fieldParams ) { if ( $ fieldParams [ 'type' ] == 'single' && isset ( $ fieldParams [ 'default' ] ) ) { $ this -> fieldData [ $ field ] = $ fieldParams [ 'default' ] ; } } } }
Sets default value for a field

@param array $sets Array of fields and its parameters

@return void
Sets default value for a field