web/wp-content/plugins/caldera-forms/classes/sync/factory.php
/**
	 * Create object
	 *
	 * This is the actual factory, but not exposed publicly, because Josh wanted to force cache/container usage
	 *
	 * @since 1.5.0
	 *
	 * @param array $form Form config
	 * @param array $field Field config
	 * @param string $field_base_id Field ID attribute
	 *
	 * @return Caldera_Forms_Sync_Sync|Caldera_Forms_Sync_HTML|Caldera_Forms_Sync_Calc|Caldera_Forms_Sync_Summary
	 */
Create object
This is the actual factory, but not exposed publicly, because Josh wanted to force cache/container usage



@param array $form Form config
@param array $field Field config
@param string $field_base_id Field ID attribute


Create object This is the actual factory but not exposed publicly because Josh wanted to force cache / container usage @param array $form Form config @param array $field Field config @param string $field_base_id Field ID attribute
protected static function create( $form, $field, $field_base_id, $current_form_count ){
		$type = Caldera_Forms_Field_Util::get_type( $field );
		switch( $type ) {
			case 'html' :
				return new  Caldera_Forms_Sync_HTML( $form, $field, $field_base_id, $current_form_count );
			break;
			case 'calculation' :
				return new  Caldera_Forms_Sync_Calc( $form, $field, $field_base_id, $current_form_count );
			break;
			case 'summary' :
				return new Caldera_Forms_Sync_Summary( $form, $field, $field_base_id, $current_form_count);
			break;
			default :
				return new  Caldera_Forms_Sync_Sync( $form, $field, $field_base_id, $current_form_count );
			break;
		}
	}
protected static function create ( $ form , $ field , $ field_base_id , $ current_form_count ) { $ type = Caldera_Forms_Field_Util :: get_type ( $ field ) ; switch ( $ type ) { case 'html' : return new Caldera_Forms_Sync_HTML ( $ form , $ field , $ field_base_id , $ current_form_count ) ; break ; case 'calculation' : return new Caldera_Forms_Sync_Calc ( $ form , $ field , $ field_base_id , $ current_form_count ) ; break ; case 'summary' : return new Caldera_Forms_Sync_Summary ( $ form , $ field , $ field_base_id , $ current_form_count ) ; break ; default : return new Caldera_Forms_Sync_Sync ( $ form , $ field , $ field_base_id , $ current_form_count ) ; break ; } }
Create object
 This is the actual factory, but not exposed publicly, because Josh wanted to force cache/container usage
Create object This is the actual factory but not exposed publicly because Josh wanted to force cache / container usage