The array is filled using a series of foreach statements that pick out the root rule, master rules, and the rules that the masters refer to.
The foreach statement, instead of setting domain attribute values from a SQL result set, stuffs the string TODO: set from SQL result into each element of the array of field values.
foreach語句,不是設置來自sql結果集的域屬*值,而是將字符串TODO:setfromsqlresult填塞到字段值數組的每個元素。