SproutCMS

This is the code documentation for the SproutCMS project

function setRowClassesFunc()

Set a function which should return the classes to use on the row.

   string function mycallable(array $row)

The return value should be a string of class names

Usage

void $Itemlist->setRowClassesFunc ( callable $func );

Example

$itemlist->setRowClassesFunc(function($row){
    if ($row['id'] == 42) return 'ultimate';
    return '';
});

Arguments

  1. callable $func

Return value

  • void