/** * To display the generated HTML * @param renderable $renderable */ protected function render_flavours_generatedefaults_execute(renderable $renderable) { // Display info about the execution (was local/defaults.php overwritten?) $class = 'generalbox ' . $renderable->get_info()->class; $output = $this->output->box($renderable->get_info()->text, $class); // The php code to copy & paste $userfriendlycode = '<?php<br/><br/>'; $userfriendlycode .= implode('<br/>', $renderable->get_phparray()); $userfriendlycode .= '<br/><br/>'; $userfriendlycode .= '// It ends after this two comment lines, there is no php closing tag in this file,<br/>'; $userfriendlycode .= '// it is intentional because it prevents trailing whitespace problems!<br/><br/>'; $output .= $this->output->box($userfriendlycode, 'configphp'); return $output; }