class-gsc-table.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Google_Search_Console
  6. */
  7. if ( ! class_exists( 'WP_List_Table' ) ) {
  8. require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
  9. }
  10. /**
  11. * Class WPSEO_GSC_Table.
  12. *
  13. * @deprecated 12.5
  14. *
  15. * @codeCoverageIgnore
  16. */
  17. class WPSEO_GSC_Table extends WP_List_Table {
  18. /**
  19. * Modal height.
  20. *
  21. * @var int
  22. */
  23. const FREE_MODAL_HEIGHT = 140;
  24. /**
  25. * Search Console table class constructor (subclasses list table).
  26. *
  27. * @deprecated 12.5
  28. *
  29. * @codeCoverageIgnore
  30. *
  31. * @param string $platform Platform (desktop, mobile, feature phone).
  32. * @param string $category Type of the issues.
  33. * @param array $items Set of the issues to display.
  34. */
  35. public function __construct( $platform, $category, array $items ) {
  36. parent::__construct();
  37. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  38. }
  39. /**
  40. * Getting the screen id from this table.
  41. *
  42. * @deprecated 12.5
  43. *
  44. * @codeCoverageIgnore
  45. *
  46. * @return string
  47. */
  48. public function get_screen_id() {
  49. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  50. return $this->screen->id;
  51. }
  52. /**
  53. * Setup the table variables, fetch the items from the database, search, sort and format the items.
  54. *
  55. * @deprecated 12.5
  56. *
  57. * @codeCoverageIgnore
  58. */
  59. public function prepare_items() {
  60. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  61. }
  62. /**
  63. * Set the table columns.
  64. *
  65. * @deprecated 12.5
  66. *
  67. * @codeCoverageIgnore
  68. *
  69. * @return array
  70. */
  71. public function get_columns() {
  72. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  73. return array();
  74. }
  75. }