PHP Class WPSEO_GSC, wordpress-seo

Show file Open project: yoast/wordpress-seo

Protected Properties

Property Type Description
$category_filter WPSEO_GSC_Category_Filters
$issue_fetch WPSEO_GSC_Issues

Public Methods

Method Description
__construct ( ) Constructor for the page class. This will initialize all GSC related stuff
display ( ) Function that outputs the redirect page
display_table ( ) Display the table
init ( ) Run init logic.
page_scripts ( ) Load the admin redirects scripts
register_gsc_notification ( ) If the Google Search Console has no credentials, add a notification for the user to give him a heads up. This message is dismissable.
register_settings ( ) Be sure the settings will be registered, so data can be stored
set_help ( ) Setting the tab help on top of the screen
set_screen_option ( string $status, string $option, string $value ) : mixed Set the screen options

Private Methods

Method Description
add_notification ( string $message, string $type ) Adding notification to the yoast notification center
catch_authentication_post ( ) Catch the authentication post
get_profile_notification ( ) : Yoast_Notification Builds the notification used when GSC is not connected to a profile
list_table_search_post_to_get ( ) Catch the redirects search post and redirect it to a search get
request_handler ( ) Handles the POST and GET requests
set_dependencies ( ) Setting dependencies which will be used one this page
set_hooks ( ) Setting the hooks to be load on page request

Method Details

__construct() public method

Constructor for the page class. This will initialize all GSC related stuff
public __construct ( )

display() public method

Function that outputs the redirect page
public display ( )

display_table() public method

Display the table
public display_table ( )

init() public method

Run init logic.
public init ( )

page_scripts() public method

Load the admin redirects scripts
public page_scripts ( )

register_gsc_notification() public method

If the Google Search Console has no credentials, add a notification for the user to give him a heads up. This message is dismissable.

register_settings() public method

Be sure the settings will be registered, so data can be stored
public register_settings ( )

set_help() public method

Setting the tab help on top of the screen
public set_help ( )

set_screen_option() public method

Set the screen options
public set_screen_option ( string $status, string $option, string $value ) : mixed
$status string Status string.
$option string Option key.
$value string Value to return.
return mixed

Property Details

$category_filter protected property

protected WPSEO_GSC_Category_Filters $category_filter
return WPSEO_GSC_Category_Filters

$issue_fetch protected property

protected WPSEO_GSC_Issues $issue_fetch
return WPSEO_GSC_Issues