/** * @param string The HTML source of the generated page. Pass by reference! * @param int The maximum iteration? * @return Nothing as the HTML source is passed by reference. * */ function evalDroplets(&$wb_page_data, $max_loops = 3) { $max_loops = (int) ($max_loops = 0 ? 3 : (int) $max_loops); while (processDroplets($wb_page_data) == true && $max_loops > 0) { $max_loops--; } }
/** * @param string $wb_page_data * @param string $position ('frontend'|'backend') * @param int $max_loops */ function evalDroplets(&$wb_page_data, $position = 'frontend', $max_loops = 3) { $max_loops = (int) ($max_loops = 0 ? 3 : (int) $max_loops); while (processDroplets($wb_page_data, $position) == true && $max_loops > 0) { $max_loops--; } return $wb_page_data; }