Метод | Описание | |
---|---|---|
__construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer = null ) | WPSEO_Admin_Banner_Spot constructor. | |
add_banner ( WPSEO_Admin_Banner $banner ) | Adds an admin banner. | |
get_description ( ) : string | Returns the description. | |
get_title ( ) : string | Returns the title. | |
has_banners ( ) : boolean | Checks if there are any banners set. | |
render_banner ( ) : string | Renders the banner. | |
set_description ( string $description ) | Sets the description |
Метод | Описание | |
---|---|---|
get_random_banner ( ) : null | WPSEO_Admin_Banner | Returns a random banner. |
public __construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer = null ) | ||
$title | string | The title for the spot. |
$banner_renderer | WPSEO_Admin_Banner_Renderer | The renderer for the banner. |
public add_banner ( WPSEO_Admin_Banner $banner ) | ||
$banner | WPSEO_Admin_Banner | The banner to add. |
public get_description ( ) : string | ||
Результат | string |
protected get_random_banner ( ) : null | WPSEO_Admin_Banner | ||
Результат | null | WPSEO_Admin_Banner |
public has_banners ( ) : boolean | ||
Результат | boolean |
public render_banner ( ) : string | ||
Результат | string |
public set_description ( string $description ) | ||
$description | string | The description. |