Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Correct data types?


Reply


2 Posts   310 Views

Avatar
StefanDpunkt

Community Member, 14 Posts

8 October 2013 at 8:36pm

Edited: 08/10/2013 8:37pm

Hi there,

I have not so the survey in terms of data types and ask you for your help.

Value 1 = Integer value 0-100
Value 2 = 0 or 1 only

what types of data you would use in the backend?

Thanks for your help!

Avatar
Willr

Forum Moderator, 5513 Posts

11 October 2013 at 8:07pm

For integers use the 'Int' data type - http://api.silverstripe.org/3.1/class-Int.html

For 0/1 you could represent it as a Boolean field - http://api.silverstripe.org/3.1/class-Boolean.html