37 if($strategyType === self::STRATEGY_TYPE_TEMPLATE
38 || $strategyType === self::STRATEGY_TYPE_TEMPLATE_COMMA
39 || $strategyType === self::STRATEGY_TYPE_TEMPLATE_NL
40 || $strategyType === self::STRATEGY_TYPE_TEMPLATE_BR
45 switch ($strategyType)
54 $delimiter =
'<br />';
66 elseif($strategyType === self::STRATEGY_TYPE_FIELD_SORT)
70 elseif($strategyType === self::STRATEGY_TYPE_FIELD_TYPE)
74 $aType = $a->getType();
75 $bType = $b->getType();
87 $result = $aType - $bType;
152 if($fieldSorter !==
null)
154 usort($fields, $fieldSorter);
157 foreach($fields as $field)
161 if($fieldValue ===
null)
166 if($contentType === self::CONTENT_TYPE_HTML)
168 $fieldValue = htmlspecialcharsbx($fieldValue);
176 $result .= $fieldValue;