/** * Renders a collection of options in the standard way. See {@link renderPreparedOptionHtml()} * for more specifics on the arguments. * * @param XenForo_View $view * @param array $preparedOptions * @param boolean $canEdit * @param string $fieldPrefix * * @return array Array of XenForo_Template_Abstract objects */ public static function renderPreparedOptionsHtml(XenForo_View $view, array $preparedOptions, $canEdit, $fieldPrefix = 'options') { $renderedOptions = array(); foreach ($preparedOptions as $optionId => $preparedOption) { $renderedOptions[$optionId] = XenForo_ViewAdmin_Helper_Option::renderPreparedOptionHtml($view, $preparedOption, $canEdit, $fieldPrefix); } return $renderedOptions; }