function smarty_function_html_table_cycle in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/lib/smarty/plugins/function.html_table.php \smarty_function_html_table_cycle()
1 call to smarty_function_html_table_cycle()
- smarty_function_html_table in includes/
moodle/ lib/ smarty/ plugins/ function.html_table.php - Smarty {html_table} function plugin
File
- includes/
moodle/ lib/ smarty/ plugins/ function.html_table.php, line 124
Code
function smarty_function_html_table_cycle($name, $var, $no) {
if (!is_array($var)) {
$ret = $var;
}
else {
$ret = $var[$no % count($var)];
}
return $ret ? ' ' . $ret : '';
}