/** * Draw task option controls. * @param FORM_RENDERER $renderer * @access private */ protected function _draw_options($renderer) { if (!$this->_object->info->exists()) { $warning_message = 'Since there is no version in the database, the migrator for <span class="field">' . $this->_object->info->database_version . '</span> will be used and "Ignore Version in Database" is required.'; $renderer->draw_text_row($this->context->resolve_icon_as_html('{icons}indicators/warning', Thirty_two_px, 'Warning'), $warning_message, 'caution'); } parent::_draw_options($renderer); }
/** * Add boolean fields to the check boxes. * @param FORM_LIST_PROPERTIES $props * @access private */ protected function _add_boolean_options($props) { parent::_add_boolean_options($props); $props->add_item('preview', 1); }