class-gsc.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\admin\google_search_console
  6. */
  7. /**
  8. * Class WPSEO_GSC.
  9. */
  10. class WPSEO_GSC implements WPSEO_WordPress_Integration {
  11. /**
  12. * The option where data will be stored.
  13. *
  14. * @var string
  15. */
  16. const OPTION_WPSEO_GSC = 'wpseo-gsc';
  17. /**
  18. * Outputs the HTML for the redirect page.
  19. *
  20. * @return void
  21. */
  22. public function display() {
  23. require_once WPSEO_PATH . 'admin/google_search_console/views/gsc-display.php';
  24. }
  25. /**
  26. * Registers the hooks.
  27. *
  28. * @deprecated 12.5
  29. *
  30. * @codeCoverageIgnore
  31. *
  32. * @return void
  33. */
  34. public function register_hooks() {
  35. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  36. }
  37. /**
  38. * Handles the dashboard notification.
  39. *
  40. * If the Google Search Console has no credentials, show a notification
  41. * for the user to give them a heads up. This message is dismissable.
  42. *
  43. * @deprecated 12.5
  44. *
  45. * @codeCoverageIgnore
  46. *
  47. * @return void
  48. */
  49. public function register_gsc_notification() {
  50. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  51. }
  52. /**
  53. * Makes sure the settings will be registered, so data can be stored.
  54. *
  55. * @deprecated 12.5
  56. *
  57. * @codeCoverageIgnore
  58. *
  59. * @return void
  60. */
  61. public function register_settings() {
  62. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  63. }
  64. /**
  65. * Displays the table.
  66. *
  67. * @deprecated 12.5
  68. *
  69. * @codeCoverageIgnore
  70. *
  71. * @return void
  72. */
  73. public function display_table() {
  74. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  75. }
  76. /**
  77. * Loads the admin redirects scripts.
  78. *
  79. * @deprecated 12.5
  80. *
  81. * @codeCoverageIgnore
  82. *
  83. * @return void
  84. */
  85. public function page_scripts() {
  86. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  87. }
  88. /**
  89. * Sets the screen options.
  90. *
  91. * @deprecated 12.5
  92. *
  93. * @codeCoverageIgnore
  94. *
  95. * @param string $status Status string.
  96. * @param string $option Option key.
  97. * @param string $value Value to return.
  98. *
  99. * @return mixed The screen option value. False when not errors_per_page.
  100. */
  101. public function set_screen_option( $status, $option, $value ) {
  102. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  103. return false;
  104. }
  105. /**
  106. * Sets the tab help on top of the screen.
  107. *
  108. * @deprecated 12.5
  109. *
  110. * @codeCoverageIgnore
  111. *
  112. * @return void
  113. */
  114. public function set_help() {
  115. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  116. }
  117. /**
  118. * Run init logic.
  119. *
  120. * @codeCoverageIgnore
  121. *
  122. * @deprecated 9.5
  123. *
  124. * @return void
  125. */
  126. public function init() {
  127. _deprecated_function( __METHOD__, 'WPSEO 9.5' );
  128. }
  129. }