SproutCMS

This is the code documentation for the SproutCMS project

function renderItem()

Renders an itemlist definition

Definition can be one of:
 - A field name
 - An array with two indexes, 0 => ColModifier, 1 => field name
 - A Closure, which will receive one argument of the entire row as an array,
   and must return a string of HTML

The Closure result supports a subset of HTML, Text::limitedSubsetHtml for more details

Usage

string Itemlist::renderItem ( mixed $defn , array|object $item_data );

Arguments

  1. mixed $defn
  2. array|object $item_data
    Result row

Return value

  • string