<?php
/**
 * Class used to implement the back-end functionalities of the "Hits" menu.
 *
 * @package interlinks-manager
 */

/**
 * Class used to implement the back-end functionalities of the "Hits" menu.
 */
class Daim_Hits_Menu_Elements extends Daim_Menu_Elements {

	public function __construct( $shared, $page_query_param, $config ) {

		parent::__construct( $shared, $page_query_param, $config );

		$this->menu_slug          = 'hits';
		$this->slug_plural        = 'hits';
		$this->label_singular     = 'Hits';
		$this->label_plural       = 'Hits';
		$this->primary_key        = 'category_id';
		$this->db_table           = 'category';
		$this->list_table_columns = array(
			array(
				'db_field' => 'name',
				'label'    => 'Name',
			),
			array(
				'db_field' => 'description',
				'label'    => 'Description',
			),
		);
		$this->searchable_fields  = array(
			'name',
			'description',
		);
	}

	/**
	 * Display the content of the body.
	 *
	 * @return void
	 */
	function display_custom_content() {

		?>

		<div id="react-root"></div>

		<?php

	}

}
