/** * @return \k1lib\html\div|boolean */ public function exec_board() { if (!$this->is_enabled) { return FALSE; } if ($this->data_loaded) { if ($this->create_object->get_post_data_catched()) { $this->create_object->put_post_data_on_table_data(); if (!$this->skip_form_action) { if ($this->create_object->do_post_data_validation()) { $this->sql_action_result = $this->create_object->do_insert(); } else { DOM_notification::queue_mesasage(board_create_strings::$error_form, "warning", $this->notifications_div_id); DOM_notification::queue_title(board_base_strings::$alert_board); } } } if (empty($this->sql_action_result)) { if ($this->apply_label_filter) { $this->create_object->apply_label_filter(); } $this->create_object->insert_inputs_on_data_row(); $create_content_div = $this->create_object->do_html_object(); $create_content_div->append_to($this->board_content_div); return $this->board_content_div; } } else { DOM_notification::queue_mesasage(board_create_strings::$error_no_blank_data, "alert", $this->notifications_div_id); DOM_notification::queue_title(board_base_strings::$alert_board); $this->create_object->make_invalid(); $this->is_enabled = FALSE; return FALSE; } }