v5:userguide:learn_fields:field_objects
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
v5:userguide:learn_fields:field_objects [2016/03/18 02:13] – created mnewnham | v5:userguide:learn_fields:field_objects [2016/03/20 16:49] – [MetaType Based Decisions] mnewnham | ||
---|---|---|---|
Line 35: | Line 35: | ||
</ | </ | ||
+ | ===== Interrogating The Columns ===== | ||
We are now going to loop through each column of each row and use 3 methods to ascertain the value and attributes of the field: | We are now going to loop through each column of each row and use 3 methods to ascertain the value and attributes of the field: | ||
* [[v5: | * [[v5: | ||
Line 56: | Line 57: | ||
</ | </ | ||
+ | ===== MetaType Based Decisions ===== | ||
At this point in the loop, we make a formatting decision based on the portable metaType attribute of the column. If the type of the field is a timestamp, we will immediately format the data to present the data as a human readable date | At this point in the loop, we make a formatting decision based on the portable metaType attribute of the column. If the type of the field is a timestamp, we will immediately format the data to present the data as a human readable date | ||
<code php> | <code php> | ||
Line 74: | Line 76: | ||
</ | </ | ||
<WRAP info center 300px> | <WRAP info center 300px> | ||
- | **End Of Lesson | + | **End Of Lesson** |
</ | </ | ||
v5/userguide/learn_fields/field_objects.txt · Last modified: 2021/03/09 09:38 by dregad